/* ===========================
   News Single Page Styles
   =========================== */

.news-single-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.news-single-article {
    background: #fff;
}

.news-single-header {
    margin-bottom: 40px;
}

.news-meta {
    margin-bottom: 15px;
}

.news-date {
    display: inline-block;
    font-size: 14px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-single-title {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 30px;
    color: #333;
}

.news-single-image {
    width: 100%;
    max-width: 1000px;
    height: 500px; /* Feste Höhe für einheitliches Format */
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: #f5f5f5;
}

.news-single-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover; /* Bild wird proportional zugeschnitten */
    object-position: center;
}

.news-single-content {
    max-width: 800px;
    margin: 40px auto;
}

.news-text-content {
    font-size: 18px;
    line-height: 1.8;
    color: #444;
}

.news-text-content p {
    margin-bottom: 20px;
}

.news-text-content h2,
.news-text-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #333;
}

.news-text-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 20px 0;
}

/* Zugeordnete Produkte Section */
.news-products-section {
    max-width: 1000px;
    margin: 60px auto;
    padding: 40px;
    background: #f9f9f9;
    border-radius: 8px;
}

.news-products-title {
    font-size: 28px;
    margin-bottom: 30px;
    color: #333;
}

.news-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.news-product-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.news-product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
}

.news-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-product-item:hover .news-product-image img {
    transform: scale(1.05);
}

.news-product-info {
    padding: 20px;
}

.news-product-title {
    font-size: 18px;
    margin-bottom: 10px;
}

.news-product-title a {
    color: #333;
    text-decoration: none;
}

.news-product-title a:hover {
    color: #0073aa;
}

.news-product-artikelnr {
    font-size: 13px;
    color: #999;
    margin-bottom: 8px;
}

.news-product-price {
    font-size: 20px;
    font-weight: bold;
    color: #0073aa;
    margin: 0;
}

/* News Navigation */
.news-navigation {
    max-width: 800px;
    margin: 60px auto 0;
    padding-top: 40px;
    border-top: 2px solid #eee;
}

.news-nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.news-nav-previous,
.news-nav-next {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.news-nav-previous:hover,
.news-nav-next:hover {
    background: #f0f0f0;
}

.news-nav-next {
    text-align: right;
}

.news-nav-links a {
    text-decoration: none;
    color: #333;
    display: block;
}

.nav-subtitle {
    display: block;
    font-size: 13px;
    color: #999;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-title {
    display: block;
    font-size: 16px;
    font-weight: 600;
}

.news-back-link {
    text-align: center;
}

.back-to-news {
    display: inline-block;
    padding: 12px 30px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.back-to-news:hover {
    background: #005a87;
}

/* ===========================
   News Liste Styles
   =========================== */

.news-liste-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.news-liste-item {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #eee;
}

.news-liste-item:last-child {
    border-bottom: none;
}

.news-liste-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 8px;
    background: #f5f5f5;
}

.news-liste-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-liste-image:hover img {
    transform: scale(1.05);
}

.news-liste-content {
    display: flex;
    flex-direction: column;
}

.news-liste-meta {
    margin-bottom: 10px;
}

.news-liste-date {
    font-size: 13px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-liste-title {
    font-size: 28px;
    margin-bottom: 15px;
}

.news-liste-title a {
    color: #333;
    text-decoration: none;
}

.news-liste-title a:hover {
    color: #0073aa;
}

.news-liste-excerpt {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.news-liste-readmore {
    display: inline-block;
    padding: 10px 25px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    align-self: flex-start;
    transition: background 0.3s ease;
}

.news-liste-readmore:hover {
    background: #005a87;
}

/* ===========================
   News Grid Styles
   =========================== */

.news-grid {
    display: grid;
    gap: 30px;
    margin: 40px 0;
}

.news-grid[data-columns="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.news-grid[data-columns="3"] {
    grid-template-columns: repeat(3, 1fr);
}

.news-grid[data-columns="4"] {
    grid-template-columns: repeat(4, 1fr);
}

.news-grid-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.news-grid-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f5f5f5;
}

.news-grid-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-grid-item:hover .news-grid-image img {
    transform: scale(1.05);
}

.news-grid-content {
    padding: 20px;
}

.news-grid-meta {
    margin-bottom: 10px;
}

.news-grid-date {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-grid-title {
    font-size: 20px;
    margin-bottom: 12px;
}

.news-grid-title a {
    color: #333;
    text-decoration: none;
}

.news-grid-title a:hover {
    color: #0073aa;
}

.news-grid-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
}

.news-grid-readmore {
    display: inline-block;
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.news-grid-readmore:hover {
    color: #005a87;
}

/* ===========================
   Neueste News Widget Styles
   =========================== */

.neueste-news-wrapper {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
}

.neueste-news-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.neueste-news-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.neueste-news-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 4px;
    background: #f5f5f5;
}

.neueste-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.neueste-news-content {
    flex-grow: 1;
}

.neueste-news-date {
    display: block;
    font-size: 11px;
    color: #999;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.neueste-news-title {
    font-size: 16px;
    margin: 0;
}

.neueste-news-title a {
    color: #333;
    text-decoration: none;
}

.neueste-news-title a:hover {
    color: #0073aa;
}

/* ===========================
   Responsive Styles
   =========================== */

/* Tablets */
@media (max-width: 1024px) {
    .news-grid[data-columns="3"],
    .news-grid[data-columns="4"] {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-single-title {
        font-size: 36px;
    }
    
    .news-liste-item {
        grid-template-columns: 300px 1fr;
    }
    
    .news-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .news-single-image {
        height: 400px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .news-grid,
    .news-grid[data-columns="2"],
    .news-grid[data-columns="3"],
    .news-grid[data-columns="4"] {
        grid-template-columns: 1fr;
    }
    
    .news-single-title {
        font-size: 28px;
    }
    
    .news-text-content {
        font-size: 16px;
    }
    
    .news-liste-item {
        grid-template-columns: 1fr;
    }
    
    .news-liste-image {
        height: 200px;
    }
    
    .news-nav-links {
        grid-template-columns: 1fr;
    }
    
    .news-nav-next {
        text-align: left;
    }
    
    .news-products-grid {
        grid-template-columns: 1fr;
    }
    
    .news-single-image {
        height: 300px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .news-single-wrapper {
        padding: 20px 15px;
    }
    
    .news-single-title {
        font-size: 24px;
    }
    
    .news-liste-title {
        font-size: 22px;
    }
    
    .news-grid-title {
        font-size: 18px;
    }
    
    .neueste-news-image {
        width: 60px;
        height: 60px;
    }
    
    .news-single-image {
        height: 250px;
    }
}
