/**
 * Frontend-Styles für Soap-Vorschau Landingpages & Artikel
 * Modern, sauber, responsive
 */

/* ========================================
   LANDINGPAGE STYLES
   ======================================== */

.soap-landingpage {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Hero Header */
.soap-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 20px 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.soap-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,117.3C1248,117,1344,139,1392,149.3L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') bottom center no-repeat;
    background-size: cover;
    opacity: 0.3;
}

.soap-hero h1 {
    font-size: 3.5em;
    font-weight: 800;
    margin: 0 0 15px 0;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
}

/* Intro direkt unter dem Titel - klein und dezent */
.soap-hero-intro {
    font-size: 0.95em;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 400;
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.95);
}

.soap-hero-meta {
    font-size: 1.3em;
    opacity: 0.95;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.soap-hero-meta span {
    margin: 0 15px;
    display: inline-block;
}

/* Intro Box (DEPRECATED - wird nicht mehr genutzt) */
.soap-intro {
    display: none;
}

.soap-intro-box {
    display: none;
}

/* Episode Container */
.soap-episodes {
    max-width: 900px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

.episode-date-header {
    font-size: 1.8em;
    font-weight: 700;
    margin: 50px 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid #667eea;
    color: #1e1e1e;
    position: relative;
}

.episode-date-header::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #764ba2;
}

/* Episode Card */
.episode-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.episode-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.episode-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.episode-card:hover::before {
    transform: scaleY(1);
}

.episode-header {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.episode-number {
    display: inline-block;
    font-size: 0.9em;
    color: #999;
    font-weight: 500;
}

.episode-duration {
    color: #999;
    font-weight: 500;
}

/* Date Picker */
.soap-date-picker {
    max-width: 900px;
    margin: 40px auto;
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.date-picker-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    justify-content: center;
}

@media (max-width: 768px) {
    .date-picker-buttons {
        grid-template-columns: repeat(3, 1fr);
    }
}

.date-picker-btn {
    padding: 10px 16px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.date-picker-btn:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
}

.date-picker-btn.is-today {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

.date-picker-btn.is-today:hover {
    opacity: 0.9;
}

.soap-archive-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: #f5f5f5;
    color: #999;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.85em;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.soap-archive-btn:hover {
    background: #e8e8e8;
    color: #667eea;
    border-color: #667eea;
}

/* Titel ist der Star - groß und prominent! */
.episode-title {
    font-size: 1.8em;
    font-weight: 800;
    color: #1e1e1e;
    margin: 0 0 20px 0;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

/* Content ist der Hauptfokus - gut lesbar und groß! */
.episode-content {
    color: #2c2c2c;
    line-height: 1.9;
    margin: 20px 0 25px 0;
    font-size: 1.15em;
    font-weight: 400;
}

.episode-content p {
    margin-bottom: 1.2em;
    line-height: 1.9;
}

.episode-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    font-size: 0.95em;
}

.episode-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
}

.episode-meta-item strong {
    color: #333;
}

/* Gruppiere Duration + Episode-Nummer (bleibt immer zusammen!) */
.episode-meta-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap; /* Bleibt IMMER in einer Zeile! */
}

.episode-meta-group .episode-duration {
    font-size: 0.95em;
    color: #999;
}

.episode-meta-group .episode-number {
    font-size: 0.95em;
    color: #999;
}

/* Episode Footer Buttons */
.episode-footer {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

/* Dezenter "Mehr Infos" Button - Content steht im Mittelpunkt! */
.episode-info-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    background: transparent;
    color: #667eea;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.8em;
    border: 1px solid #e0e0e0;
    transition: all 0.2s ease;
}

.episode-info-btn:hover {
    background: #f8f9fa;
    border-color: #667eea;
    color: #667eea;
}

/* Sehr dezenter Stream-Button - kaum sichtbar */
.episode-stream-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    background: transparent;
    color: #999;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 400;
    font-size: 0.75em;
    border: 1px solid #e0e0e0;
    transition: all 0.2s ease;
}

.episode-stream-btn:hover {
    background: #f8f9fa;
    color: #667eea;
    border-color: #667eea;
}

.streaming-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.streaming-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

/* SEO Info Box */
.soap-seo-info {
    max-width: 900px;
    margin: 80px auto 40px;
    padding: 40px;
    background: linear-gradient(to bottom, #f9f9f9 0%, #ffffff 100%);
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.soap-seo-info h2 {
    font-size: 2em;
    margin-bottom: 30px;
    color: #1e1e1e;
    border-bottom: 3px solid #667eea;
    padding-bottom: 15px;
}

.soap-seo-info h3 {
    font-size: 1.4em;
    margin: 30px 0 15px 0;
    color: #333;
}

.soap-seo-info p, .soap-seo-info ul {
    color: #555;
    line-height: 1.8;
}

.soap-seo-info ul {
    list-style: none;
    padding-left: 0;
}

.soap-seo-info ul li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
}

.soap-seo-info ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

/* Empty State */
.soap-empty-state {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    max-width: 600px;
    margin: 40px auto;
}

.soap-empty-state-icon {
    font-size: 5em;
    opacity: 0.3;
    margin-bottom: 20px;
}

.soap-empty-state h3 {
    font-size: 1.8em;
    color: #333;
    margin: 20px 0 10px 0;
}

.soap-empty-state p {
    color: #666;
    font-size: 1.1em;
}

/* ========================================
   SINGLE POST (Artikel)
   ======================================== */

.single-soap_preview .entry-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.single-soap_preview .entry-title {
    font-size: 2.5em;
    line-height: 1.3;
    color: #1e1e1e;
    margin-bottom: 20px;
}

.soap-post-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 25px 0;
    padding: 20px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
}

@media (max-width: 600px) {
    .soap-post-meta {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

.soap-post-meta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 5px;
    padding: 12px;
    background: white;
    border-radius: 10px;
}

.meta-label {
    font-size: 1.8em;
    line-height: 1;
}

.meta-value {
    font-size: 0.85em;
    color: #666;
    font-weight: 500;
    line-height: 1.3;
}

.soap-post-meta-item strong {
    color: #333;
    font-weight: 600;
}

.soap-post-content {
    max-width: 800px;
    margin: 40px auto;
    font-size: 1.1em;
    line-height: 1.9;
    color: #333;
}

.soap-post-content p {
    margin-bottom: 1.5em;
}

.soap-streaming-cta {
    max-width: 800px;
    margin: 50px auto;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    text-align: center;
    color: white;
}

.soap-streaming-cta h3 {
    color: white;
    margin-top: 0;
    font-size: 1.6em;
}

.soap-streaming-cta-button {
    display: inline-block;
    background: white;
    color: #667eea;
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.soap-streaming-cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    color: #667eea;
    text-decoration: none;
}

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

@media (max-width: 768px) {
    .soap-hero {
        padding: 40px 20px 35px;
    }
    
    .soap-hero h1 {
        font-size: 2.2em;
        margin-bottom: 12px;
    }
    
    /* Intro noch kleiner auf Mobile */
    .soap-hero-intro {
        font-size: 0.85em;
        line-height: 1.5;
        padding: 0 10px;
    }
    
    .soap-hero-meta {
        font-size: 1em;
    }
    
    .soap-hero-meta span {
        display: block;
        margin: 5px 0;
    }
    
    .episode-date-header {
        font-size: 1.4em;
    }
    
    .episode-card {
        padding: 20px;
    }
    
    /* Titel bleibt groß auch auf Mobile! */
    .episode-title {
        font-size: 1.5em;
        margin-bottom: 15px;
    }
    
    /* Content bleibt gut lesbar auf Mobile */
    .episode-content {
        font-size: 1.1em;
        margin: 15px 0 20px 0;
    }
    
    /* Buttons noch kleiner auf Mobile */
    .episode-info-btn,
    .episode-stream-btn {
        font-size: 0.75em;
        padding: 5px 10px;
    }
    
    .episode-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .streaming-button {
        width: 100%;
        justify-content: center;
        margin-left: 0 !important;
    }
    
    .single-soap_preview .entry-title {
        font-size: 1.8em;
    }
    
    .soap-post-meta {
        flex-direction: column;
        align-items: center;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.episode-card {
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.episode-card.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Alternative ohne JavaScript: CSS-Animation */
@media (prefers-reduced-motion: no-preference) {
    .episode-card:nth-child(1) { animation: fadeInUp 0.5s ease-out 0.1s both; }
    .episode-card:nth-child(2) { animation: fadeInUp 0.5s ease-out 0.2s both; }
    .episode-card:nth-child(3) { animation: fadeInUp 0.5s ease-out 0.3s both; }
    .episode-card:nth-child(4) { animation: fadeInUp 0.5s ease-out 0.4s both; }
    .episode-card:nth-child(5) { animation: fadeInUp 0.5s ease-out 0.5s both; }
}

/* ========================================
   COUNTDOWN BADGE (Optional)
   ======================================== */

.episode-countdown {
    display: inline-block;
    background: #ff6b6b;
    color: white;
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: 600;
    margin-left: 10px;
}

.episode-countdown.today {
    background: #00a32a;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
}

.badge-primary {
    background: #e7f3ff;
    color: #0073aa;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

