/* ========================================================================
   SMG PRESS ARTICLES WIDGET
   Pressebereich mit Pressemitteilungen und Medieninhalten
   ======================================================================== */

.smg-press-widget {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.smg-press-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(220, 38, 38, 0.02) 0%, transparent 50%);
    z-index: 1;
}

.smg-press-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* SECTION HEADER
   ======================================================================== */

.smg-press-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.smg-press-title {
    font-family: var(--font-secondary);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    background: linear-gradient(135deg, #1e293b 0%, #dc2626 50%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.smg-press-subtitle {
    font-size: 1.3rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 500;
    line-height: 1.6;
}

/* FILTER SECTION
   ======================================================================== */

.smg-press-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.smg-press-filter {
    padding: 0.875rem 2rem;
    border: 2px solid #e2e8f0;
    background: white;
    color: #64748b;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.smg-press-filter::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease-in-out;
}

.smg-press-filter:hover::before {
    left: 100%;
}

.smg-press-filter:hover,
.smg-press-filter.active {
    background: var(--primary-red);
    color: white;
    border-color: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.3);
}

/* FEATURED ARTICLE
   ======================================================================== */

.smg-featured-article {
    margin-bottom: 4rem;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.smg-featured-article:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.12);
}

.smg-featured-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 400px;
}

.smg-featured-image {
    position: relative;
    overflow: hidden;
}

.smg-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.smg-featured-article:hover .smg-featured-image img {
    transform: scale(1.05);
}

.smg-featured-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.smg-featured-info {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.smg-featured-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #64748b;
}

.smg-featured-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.smg-featured-type {
    background: #f1f5f9;
    color: #475569;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-weight: 600;
}

.smg-featured-title {
    font-family: var(--font-secondary);
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.smg-featured-excerpt {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.smg-featured-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ARTICLES GRID
   ======================================================================== */

.smg-press-grid {
    display: grid;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.smg-press-grid.columns-2 {
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
}

.smg-press-grid.columns-3 {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.smg-press-grid.columns-4 {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* PRESS ARTICLE CARDS
   ======================================================================== */

.smg-press-article {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    animation: card-float 8s ease-in-out infinite;
    animation-delay: calc(var(--article-index, 0) * 0.2s);
}

.smg-press-article:nth-child(1) { --article-index: 0; }
.smg-press-article:nth-child(2) { --article-index: 1; }
.smg-press-article:nth-child(3) { --article-index: 2; }
.smg-press-article:nth-child(4) { --article-index: 3; }
.smg-press-article:nth-child(5) { --article-index: 4; }
.smg-press-article:nth-child(6) { --article-index: 5; }

@keyframes card-float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.smg-press-article:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
    animation-play-state: paused;
}

.smg-article-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.smg-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.smg-press-article:hover .smg-article-image img {
    transform: scale(1.05);
}

.smg-article-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.smg-article-content {
    padding: 2rem;
}

.smg-article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #64748b;
}

.smg-article-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.smg-article-source {
    font-weight: 600;
    color: #475569;
}

.smg-article-title {
    font-family: var(--font-secondary);
    font-size: 1.25rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.smg-article-excerpt {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.smg-article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 1rem;
    margin-top: 1rem;
}

.smg-article-actions {
    display: flex;
    gap: 0.75rem;
}

.smg-press-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.smg-press-action.primary {
    background: var(--primary-red);
    color: white;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2);
}

.smg-press-action.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    color: white;
    text-decoration: none;
}

.smg-press-action.secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.smg-press-action.secondary:hover {
    background: #e2e8f0;
    color: #374151;
    text-decoration: none;
}

.smg-article-contact {
    font-size: 0.8rem;
    color: #6b7280;
    text-align: right;
}

/* LOAD MORE SECTION
   ======================================================================== */

.smg-press-load-more {
    text-align: center;
    margin-top: 4rem;
    padding: 2rem;
}

.smg-load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    cursor: pointer;
}

.smg-load-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    color: white;
    text-decoration: none;
}

/* EXTERNAL LINK INDICATORS
   ======================================================================== */

.smg-external-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    margin-left: 1rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.smg-external-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
    z-index: 2;
}

.smg-press-article {
    position: relative;
}

.smg-press-action.primary {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.smg-press-action.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.25);
}

.smg-press-action.primary i {
    transition: transform 0.3s ease;
}

.smg-press-action.primary:hover i {
    transform: scale(1.1);
}

/* External Link Styling für Featured Article */
.smg-featured-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.smg-featured-actions .smg-external-indicator {
    margin-left: 0;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

/* Hover-Effekte für externe Links */
.smg-press-article:hover .smg-external-badge {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.smg-featured-article .smg-btn-primary[target="_blank"]:after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    bottom: -2px;
    left: -2px;
    background: linear-gradient(45deg, transparent 30%, rgba(59, 130, 246, 0.1) 50%, transparent 70%);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.smg-featured-article .smg-btn-primary[target="_blank"]:hover:after {
    opacity: 1;
}

/* Grid Artikel externe Link-Kennzeichnung */
.smg-article-content {
    position: relative;
}

.smg-article-actions .smg-external-badge {
    position: relative;
    top: auto;
    right: auto;
    margin-left: 0.75rem;
    padding: 0.125rem 0.375rem;
    font-size: 0.6rem;
    border-radius: 6px;
}

/* RESPONSIVE DESIGN
   ======================================================================== */

@media (max-width: 1200px) {
    .smg-press-grid.columns-4 {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .smg-featured-content {
        grid-template-columns: 1fr;
    }

    .smg-featured-image {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .smg-press-widget {
        padding: 4rem 0;
    }

    .smg-press-container {
        padding: 0 1rem;
    }

    .smg-press-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .smg-press-grid.columns-2,
    .smg-press-grid.columns-3,
    .smg-press-grid.columns-4 {
        grid-template-columns: 1fr;
    }

    .smg-press-filters {
        gap: 0.75rem;
        padding: 0 1rem;
    }

    .smg-press-filter {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }

    .smg-featured-info {
        padding: 2rem;
    }

    .smg-featured-title {
        font-size: 1.5rem;
    }

    .smg-article-content {
        padding: 1.5rem;
    }

    .smg-article-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .smg-article-actions {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .smg-press-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }

    .smg-article-content {
        padding: 1.25rem;
    }

    .smg-featured-info {
        padding: 1.5rem;
    }

    .smg-featured-title {
        font-size: 1.25rem;
    }

    .smg-press-filters {
        flex-direction: column;
        align-items: center;
    }

    .smg-press-filter {
        padding: 0.625rem 1.25rem;
        font-size: 0.8rem;
        min-width: 120px;
    }

    .smg-article-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .smg-press-action {
        justify-content: center;
        text-align: center;
    }
} 