/*
Theme Name: Heilungbuchen Premium
Theme URI: https://heilungbuchen.com
Author: Antigravity
Description: Premium Medizintourismus Theme for Heilungbuchen
Version: 1.1
Text Domain: hb
*/

:root {
    --bg-dark: #020617;
    --bg-card: rgba(15, 23, 42, 0.6);
    --accent: #38bdf8;
    --accent-glow: rgba(56, 189, 248, 0.4);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --border-light: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.03);
}

/* Base Styles */
body {
    background-color: #020617 !important;
    /* Force dark background */
    color: #f8fafc !important;
    font-family: 'Outfit', sans-serif;
    margin: 0;
    line-height: 1.6;
    text-align: left;
    overflow-x: hidden;
    width: 100%;
}

.app-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    overflow-x: hidden;
    width: 100%;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    position: relative;
    z-index: 1000;
}

@media (min-width: 1025px) {
    header {
        position: sticky;
        top: 0;
        background: rgba(2, 6, 23, 0.8);
        backdrop-filter: blur(12px);
        padding: 1rem 0;
        border-bottom: 1px solid var(--border-light);
    }
}

.nav-logo {
    font-weight: 800;
    font-size: 1.5rem;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: var(--accent);
}

/* Blog Content Styling - High End */
article.post {
    max-width: 850px;
    margin: 1.5rem auto;
    /* Significantly reduced */
}

.overview-text {
    width: 100% !important;
}

.overview-text h2 {
    font-size: 2.2rem;
    /* Sized down */
    color: #fff;
    margin-top: 2.5rem;
    /* Reduced spacing */
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.2;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

.overview-text h3 {
    font-size: 1.8rem;
    color: var(--accent);
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

.overview-text p {
    line-height: 1.8;
    margin-bottom: 1.2rem;
    /* Reduced from 2rem */
    color: #cbd5e1;
    font-size: 1.15rem;
    text-align: left;
    word-break: break-word;
    hyphens: auto;
}

.editors-note,
.uzman-gorusu {
    background: rgba(15, 23, 42, 0.8);
    /* Solid background */
    border-left: 6px solid var(--accent);
    padding: 2rem;
    margin: 2.5rem 0;
    border-radius: 0 24px 24px 0;
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.editors-note::after {
    content: "!";
    position: absolute;
    top: -20px;
    right: 20px;
    font-size: 10rem;
    color: rgba(56, 189, 248, 0.05);
    font-weight: 900;
    pointer-events: none;
}

.editors-note b,
.uzman-gorusu h3,
.cta-box h3 {
    color: #38bdf8 !important;
    /* Force vibrant blue */
    display: block;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
}

.cta-box {
    background: #0f172a;
    /* Solid background */
    border: 2px solid var(--accent);
    padding: 2.5rem;
    border-radius: 24px;
    margin: 2.5rem 0;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.cta-box p {
    color: #f8fafc !important;
    /* Force white text */
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--accent);
    color: var(--bg-dark) !important;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 800;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px var(--accent-glow);
}

.overview-text {
    overflow-x: hidden;
    width: 100%;
}

.table-responsive-wrapper {
    overflow-x: auto;
    width: 100%;
    margin: 2rem 0;
    -webkit-overflow-scrolling: touch;
    border-radius: 20px;
    border: 1px solid var(--border-light);
    background: #1e293b;
    /* Darker, solid background for better contrast */
}

.table-responsive-wrapper table {
    margin: 0 !important;
    min-width: 600px;
    /* Force scroll on mobile */
    border: none !important;
}

.overview-text th {
    background: rgba(15, 23, 42, 0.95);
    color: var(--accent);
    padding: 1.8rem;
    text-align: left;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--border-light);
}

.overview-text td {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    color: #f1f5f9;
    /* Lighter color for better readability */
    font-size: 1.05rem;
}

.overview-text tr:last-child td {
    border-bottom: none;
}

.blog-main-image {
    width: 100%;
    max-height: 550px;
    object-fit: cover;
    border-radius: 32px;
    margin: 3rem 0;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.7);
    border: 1px solid var(--border-light);
}

.faq-item {
    background: rgba(15, 23, 42, 0.6);
    padding: 2.5rem;
    border-radius: 24px;
    margin-bottom: 2rem;
    border: 1px solid var(--border-light);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.faq-item:hover {
    border-color: var(--accent);
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.faq-item h3 {
    color: #fff !important;
    margin-top: 0 !important;
    font-size: 1.4rem !important;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.faq-item h3::before {
    content: "?";
    background: var(--accent);
    color: var(--bg-dark);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1rem;
    font-weight: 900;
}

.faq-item p {
    margin-bottom: 0;
    font-size: 1.1rem;
    color: #94a3b8;
}

.ul-styled {
    list-style: none;
    padding-left: 0;
    margin: 2.5rem 0;
}

.ul-styled li {
    padding-left: 2.5rem;
    position: relative;
    margin-bottom: 1.2rem;
    line-height: 1.8;
    color: #cbd5e1;
    font-size: 1.15rem;
}

.ul-styled li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 1rem;
    height: 2px;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

/* Blog Detail Page - Extended Premium Styles */
.post-single {
    max-width: 100%;
    margin: 0;
}

.post-header {
    max-width: 900px;
    margin: 2rem auto 1.5rem auto;
    /* Significantly reduced */
    text-align: center;
    padding: 0 2rem;
}

.post-meta-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.post-tag {
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.post-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 2.5rem;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

.post-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.author-avatar {
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-light);
    color: var(--accent);
}

.post-thumbnail-wide {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.post-thumbnail-wide img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    border-radius: 40px;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border-light);
}

.post-content-wrap {
    max-width: 850px;
    margin: 2rem auto;
    /* Reduced from 6rem */
    padding: 0 2rem;
}

.post-footer-links {
    max-width: 850px;
    margin: 0 auto 4rem auto;
    /* Reduced spacing */
    padding: 2rem 2rem;
    border-top: 1px solid var(--border-light);
}

.share-section {
    text-align: center;
}

.share-section h4 {
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.share-btn-mock {
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-weight: 800;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-btn-mock:hover {
    background: var(--accent);
    color: var(--bg-dark);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--accent-glow);
}

/* Front-Page / Archive Grid Improvements */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    padding: 0;
}

.blog-card {
    height: 100%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: var(--bg-card);
}

.blog-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 25px 50px -12px rgba(56, 189, 248, 0.25);
}

.blog-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 1.5rem;
}

.blog-tag {
    display: inline-block;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.75rem;
}

.blog-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Base Styles */
footer {
    border-top: 1px solid var(--border-light);
    padding: 1.5rem 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Mobile Responsiveness for Blog */
@media (max-width: 1024px) {
    .post-title {
        font-size: 2.8rem;
    }

    .post-thumbnail-wide {
        padding: 0 1rem;
    }
}

@media (max-width: 768px) {
    .app-container {
        padding: 0 1rem;
    }

    .nav-logo {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .nav-links {
        display: none !important;
        /* Hide the long list on mobile for now to stop overflow */
    }

    header {
        position: relative !important;
        padding: 1rem 0;
        text-align: center;
        background: transparent !important;
        backdrop-filter: none !important;
        flex-direction: column !important;
        width: 100% !important;
    }

    .post-header {
        margin: 2rem auto 1rem auto;
        position: relative !important;
    }

    .post-title {
        font-size: 1.6rem;
        letter-spacing: -0.5px;
        margin-top: 1rem;
        line-height: 1.2;
    }

    .post-author {
        font-size: 0.9rem;
    }

    .post-thumbnail-wide img {
        border-radius: 20px;
    }

    .post-content-wrap {
        margin: 2rem auto;
        padding: 0;
    }

    .overview-text h2 {
        font-size: 1.4rem;
        margin-top: 2.5rem;
    }

    .overview-text h3 {
        font-size: 1.2rem;
        margin-top: 2rem;
    }

    .overview-text p {
        font-size: 1.05rem;
        line-height: 1.7;
    }

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

    /* Prevent page horizontal scroll */
    .sticky-title,
    [class*="sticky"],
    [class*="fixed"] {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
    }
}