/*
Theme Name: Muskelup Fitness Pro
Theme URI: https://muskelup.de
Description: Professionelles Fitness-Training Theme mit modernem Design, SEO-optimiert und DSGVO-konform
Version: 1.3.0
Author: Rick
Author URI: https://muskelup.de
Template: astra
Text Domain: muskelup-fitness
Domain Path: /languages
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* ============================================================
   MUSKELUP FITNESS PRO THEME - CSS
   ============================================================ */

:root {
    --primary-color: #E74C3C;
    --secondary-color: #2C3E50;
    --accent-color: #F39C12;
    --text-dark: #2C3E50;
    --text-light: #666;
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --border-color: #ECEFF1;
    --success: #27AE60;
    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

/* ============================================================
   RESET & BASICS
   ============================================================ */

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

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.65;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.05;
    color: var(--text-dark);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

h3, h4, h5, h6 {
    letter-spacing: 0.04em;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

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

.site-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-logo {
    font-size: 32px;
    font-weight: 400;
    color: var(--primary-color);
    font-family: var(--font-display);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.site-header nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.site-header nav a {
    color: var(--text-dark);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.site-header nav a:hover {
    color: var(--primary-color);
}

/* ============================================================
   LAYOUT
   ============================================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.site-logo {
    font-size: 26px;
    font-weight: 400;
    color: var(--primary-color);
    font-family: var(--font-display);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
    transition: 0.3s;
}

/* ============================================================
   HERO SLIDER
   ============================================================ */

.hero-slider {
    position: relative;
    overflow: hidden;
    height: 520px;
}

.hero-slides {
    position: relative;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(231,76,60,0.85) 0%, rgba(44,62,80,0.75) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    color: #fff;
}

.hero-slide h1,
.hero-slide .hero-slide-title {
    font-family: var(--font-display);
    font-size: clamp(44px, 8vw, 80px);
    margin-bottom: 20px;
    color: #fff;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 0.95;
    text-shadow: 0 4px 24px rgba(0,0,0,0.35);
}

.hero-slide p {
    font-family: var(--font-body);
    font-size: 19px;
    font-weight: 400;
    margin-bottom: 30px;
    opacity: 0.95;
    line-height: 1.65;
    letter-spacing: 0.01em;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    font-size: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
    backdrop-filter: blur(4px);
}

.hero-nav:hover {
    background: rgba(255,255,255,0.4);
}

.hero-prev { left: 20px; }
.hero-next { right: 20px; }

.hero-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s;
}

.hero-dot.active,
.hero-dot:hover {
    background: #fff;
}

.hero-cta {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 13px;
    transition: all 0.3s ease;
    font-size: 16px;
}

.hero-cta:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* ============================================================
   FEATURED POSTS
   ============================================================ */

.featured-posts {
    padding: 80px 20px;
    background: var(--bg-light);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.post-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.post-thumb-link {
    display: block;
    overflow: hidden;
}

.post-thumbnail {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.post-card:hover .post-thumbnail {
    transform: scale(1.05);
}

.post-card h3 a {
    color: var(--text-dark);
    text-decoration: none;
}

.post-card h3 a:hover {
    color: var(--primary-color);
}

.post-featured-image {
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.post-content {
    padding: 25px;
}

.post-category {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.post-card h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 10px;
    line-height: 1.15;
}

.post-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.post-excerpt {
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more::after {
    content: '→';
}

/* ============================================================
   NEWSLETTER SIGNUP
   ============================================================ */

.newsletter-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-section h2 {
    font-family: var(--font-display);
    font-size: clamp(30px, 5vw, 48px);
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: white;
}

.newsletter-section p {
    font-size: 16px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-form input {
    flex: 1;
    min-width: 250px;
    padding: 15px 20px;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-family: inherit;
}

.newsletter-form button {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: var(--primary-color);
    transform: scale(1.05);
}

.newsletter-brevo-wrap {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-brevo-wrap .sib_signup_form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.newsletter-brevo-wrap .sib_signup_form input[type="email"],
.newsletter-brevo-wrap .sib_signup_form input[type="text"] {
    flex: 1;
    min-width: 250px;
    padding: 15px 20px !important;
    border: none !important;
    border-radius: 50px !important;
    font-size: 15px !important;
}

.newsletter-brevo-wrap .sib_signup_form .sib-default-btn,
.newsletter-brevo-wrap .sib_signup_form button[type="submit"] {
    background: var(--accent-color) !important;
    color: white !important;
    border: none !important;
    padding: 15px 40px !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    cursor: pointer;
}

.newsletter-admin-hint {
    background: rgba(255,255,255,0.15);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
}

.newsletter-admin-hint a {
    color: white;
    text-decoration: underline;
}

/* ============================================================
   SIDEBAR & WIDGETS
   ============================================================ */

.sidebar {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    margin-top: 40px;
}

.sidebar-title {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.sidebar a {
    display: block;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
}

.sidebar a:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
    background: var(--secondary-color);
    color: white;
    padding: 60px 20px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.footer-widget h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget li {
    margin-bottom: 10px;
}

.footer-widget a {
    color: rgba(255,255,255,0.8);
    transition: all 0.3s ease;
}

.footer-widget a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

/* ============================================================
   SINGLE POST PAGE
   ============================================================ */

.single-post {
    padding: 60px 20px;
}

.post-header {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
}

.post-header h1 {
    font-size: 40px;
    margin-bottom: 20px;
}

.post-meta-single {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 30px;
}

.post-body {
    max-width: 800px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.8;
}

.post-body img {
    max-width: 100%;
    height: auto;
    margin: 30px 0;
    border-radius: 10px;
}

.post-body h2 {
    font-size: 28px;
    margin: 40px 0 20px;
}

.post-body h3 {
    font-size: 22px;
    margin: 30px 0 15px;
}

.post-body p {
    margin-bottom: 20px;
}

.post-body ul,
.post-body ol {
    margin: 20px 0 20px 30px;
}

.post-body li {
    margin-bottom: 10px;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: white;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--secondary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
}

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

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 8px 20px rgba(0,0,0,0.08);
        z-index: 200;
    }

    .site-nav.active {
        display: block;
    }

    .site-header {
        position: relative;
    }

    .site-header nav ul {
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
    }

    .site-header nav a {
        display: block;
        padding: 12px 20px;
    }

    .hero-slider {
        height: 420px;
    }

    .hero-slide h1 {
        font-size: 32px;
    }

    .hero-slide p {
        font-size: 16px;
    }

    .hero-nav {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .section-title {
        font-size: 28px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }

    .post-header h1 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 360px;
    }

    .hero-slide h1 {
        font-size: 24px;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

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

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

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

.post-card {
    animation: fadeInUp 0.6s ease forwards;
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */

a:focus,
button:focus,
input:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ============================================================
   TRAFFIC / ENGAGEMENT (TOC, Share, Related)
   ============================================================ */

.post-toc {
    background: var(--bg-subtle, #f5f5f5);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px 24px;
    margin: 24px 0 32px;
}

.post-toc-title {
    font-family: var(--font-display);
    font-weight: 700;
    margin-bottom: 12px;
}

.post-toc ol {
    margin: 0;
    padding-left: 20px;
}

.post-toc li {
    margin-bottom: 8px;
}

.post-share {
    margin: 36px 0 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.post-share-title {
    font-weight: 600;
    margin-bottom: 12px;
}

.post-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.post-share-btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
    font-weight: 500;
    background: var(--bg-white);
}

.post-share-btn:hover {
    border-color: var(--primary-color);
}

.youtube-cta {
    margin: 28px 0;
}

.youtube-cta-inner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: #fff;
    border-radius: 14px;
    padding: 24px 28px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.youtube-cta-inner p {
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
}

.youtube-cta-btn {
    background: #fff;
    color: var(--primary-color) !important;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 700;
    white-space: nowrap;
}

.related-posts {
    margin: 32px 0 16px;
    padding: 24px;
    background: var(--bg-light);
    border-radius: 12px;
}

.related-posts h2 {
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.related-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-posts-list li {
    margin-bottom: 10px;
    padding-left: 16px;
    border-left: 3px solid var(--primary-color);
}

.section-more {
    text-align: center;
    margin-top: 28px;
    color: var(--text-light);
}

.section-more a {
    font-weight: 600;
}

/* ============================================================
   PRINT STYLES
   ============================================================ */

@media print {
    .site-header,
    .site-footer,
    .sidebar {
        display: none;
    }
}
