/* Sparangebote spezifische Styles */

.navbar {
    position: sticky;
    top: 0;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.nav-logo {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.nav-logo:hover {
    color: var(--secondary-color);
}

.nav-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-logo-image {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.nav-logo-image:hover {
    transform: scale(1.05);
}

.sparangebote-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* News Banner Styles */
.news-banner {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border: 2px solid var(--primary-color);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.news-icon {
    font-size: 1.5rem;
    animation: pulse 2s ease-in-out infinite;
}

.news-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.news-products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    transition: opacity 0.5s ease;
}

.news-product-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.news-product-item:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.3);
}

.news-product-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.news-product-info {
    flex: 1;
    min-width: 0;
}

.news-product-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-product-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.news-price-old {
    color: var(--text-secondary);
    text-decoration: line-through;
    font-size: 0.8rem;
}

.news-price-new {
    color: var(--accent-color);
    font-size: 1.1rem;
    font-weight: 700;
}

.news-discount {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(99, 102, 241, 0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.news-savings {
    font-size: 0.75rem;
    color: #22c55e;
    margin-top: 0.25rem;
    font-weight: 600;
}

.news-product-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.news-product-link:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 15px rgba(99, 102, 241, 0.4);
}

.hero-section {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem 0 1rem 0;
}

.search-section {
    text-align: center;
    margin-bottom: 3rem;
    padding: 1rem 0;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.search-box {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    gap: 0.5rem;
}

.search-input {
    flex: 1;
    padding: 1rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-btn {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.search-btn:hover {
    transform: scale(1.05);
}

.categories {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
    justify-content: center;
}

.category-btn {
    padding: 0.75rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-btn:hover {
    border-color: var(--primary-color);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.category-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* Mehr Spalten auf größeren Bildschirmen für mehr Produkte */
@media (min-width: 1400px) {
    .offers-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 1.25rem;
    }
}

@media (min-width: 1800px) {
    .offers-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

.offer-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.6s ease-out;
    overflow: hidden;
}

.offer-image-container {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.offer-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.offer-card:hover .offer-image {
    transform: scale(1.05);
}

.offer-card > *:not(.offer-image-container) {
    padding: 0 1.5rem;
}

.offer-card > *:first-child:not(.offer-image-container) {
    padding-top: 1.5rem;
}

.offer-card > *:last-child {
    padding-bottom: 1.5rem;
}

.offer-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.offer-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--accent-color), #f43f5e);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.offer-image-container {
    position: relative;
}

.offer-category {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.offer-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.offer-shop {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.offer-price {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1rem;
}

.offer-price-old {
    color: var(--text-secondary);
    text-decoration: line-through;
    font-size: 1rem;
}

.offer-price-new {
    color: var(--accent-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.offer-discount {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
}

.offer-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.offer-link {
    display: inline-block;
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: auto;
}

.offer-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.4);
}

/* Günstigstes Angebot Highlight */
.cheapest-offer {
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.3);
    position: relative;
}

.cheapest-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, var(--accent-color), #f43f5e);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(236, 72, 153, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(236, 72, 153, 0.8);
    }
}

.offer-savings {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.4);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    margin: 1rem 0;
    color: #22c55e;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
}

/* Vergleichsprodukte Styles */
.alternatives-section {
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.alternatives-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.alternatives-icon {
    font-size: 1.2rem;
}

.alternatives-title {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.alternatives-savings {
    margin-left: auto;
    background: linear-gradient(135deg, var(--accent-color), #f43f5e);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.alternatives-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.alternative-item {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.alternative-item:hover {
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.alternative-info {
    flex: 1;
}

.alternative-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.alternative-shop {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.alternative-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.alt-price-old {
    color: var(--text-secondary);
    text-decoration: line-through;
    font-size: 0.85rem;
}

.alt-price-new {
    color: var(--accent-color);
    font-size: 1.1rem;
    font-weight: 700;
}

.alt-discount {
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 600;
}

.alternative-link {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.alternative-link:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 15px rgba(99, 102, 241, 0.4);
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

/* Internet-Suche Styles */
.internet-search-header {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    margin-bottom: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

.internet-search-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.internet-search-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.internet-offer {
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

.internet-offer:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.3);
}

.loading-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.loading-spinner {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

/* Google Ads Container Styles */
.ad-container {
    margin: 2rem 0;
    text-align: center;
    min-height: 100px;
    min-width: 320px;
    width: 100%;
    max-width: 100%;
    display: block;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    overflow: hidden;
}

.ad-container ins.adsbygoogle {
    display: block !important;
    width: 100% !important;
    min-width: 320px !important;
    min-height: 100px !important;
}

.ad-top {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.ad-middle {
    margin: 3rem 0;
}

.ad-bottom {
    margin-top: 3rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .ad-container {
        margin: 1.5rem 0;
        padding: 0.75rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-title {
        font-size: 1.2rem;
    }

    .nav-logo-image {
        height: 40px;
    }

    .sparangebote-container {
        padding: 1rem;
    }

    .hero-section {
        padding: 2rem 0;
    }

    .offers-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .categories {
        gap: 0.5rem;
    }

    .category-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .alternatives-section {
        padding: 0.75rem;
    }

    .alternatives-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .alternatives-savings {
        margin-left: 0;
    }

    .alternative-item {
        flex-direction: column;
        align-items: stretch;
    }

    .alternative-link {
        width: 100%;
        text-align: center;
    }

    .offer-image-container {
        height: 200px;
    }

    .offer-badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
        top: 0.5rem;
        right: 0.5rem;
    }

    .cheapest-badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
        top: 0.5rem;
        left: 0.5rem;
    }

    .news-banner {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .news-products {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .news-product-item {
        padding: 0.75rem;
    }

    .news-product-image {
        width: 60px;
        height: 60px;
    }

    .news-product-title {
        font-size: 0.85rem;
    }

    .news-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Footer Styles */
.main-footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #ffffff;
    margin-top: 4rem;
    padding: 3rem 0 1rem;
    border-top: 3px solid var(--primary-color);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.footer-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.footer-logo {
    margin-top: 1rem;
}

.footer-logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: brightness(1.1);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
    padding-left: 5px;
}

.social-media {
    margin-top: 1.5rem;
}

.social-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    display: inline-block;
    font-size: 1.5rem;
    text-decoration: none;
    transition: transform 0.3s ease;
    filter: brightness(0.9);
}

.social-link:hover {
    transform: scale(1.2) translateY(-3px);
    filter: brightness(1.2);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.footer-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-meta-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-meta-link:hover {
    color: var(--primary-color);
}

.separator {
    color: rgba(255, 255, 255, 0.3);
}

/* Responsive Footer */
@media (max-width: 768px) {
    .main-footer {
        padding: 2rem 0 1rem;
    }

    .footer-container {
        padding: 0 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-meta {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }
}

