/**
 * Blog CSS - Pauen IT
 * Modernes dunkles Design mit blauen Akzenten für Tech Startup
 */

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

:root {
    /* Dark Theme Colors */
    --bg-primary: #050508;
    --bg-secondary: #0a0a0f;
    --bg-tertiary: #0f0f15;
    --bg-card: #15151a;
    
    /* Blue Accents */
    --accent-primary: #00d4ff;
    --accent-secondary: #0099cc;
    --accent-tertiary: #0066ff;
    --accent-hover: #33e0ff;
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #b8c5d6;
    --text-muted: #7a8ba3;
    
    /* Borders & Shadows */
    --border-color: #1a1a25;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.2);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Header */
.blog-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(10, 10, 15, 0.95);
    box-shadow: var(--shadow-sm);
}

.blog-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.blog-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-tertiary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.blog-header h1 a {
    text-decoration: none;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-tertiary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: filter 0.3s;
}

.blog-header h1 a:hover {
    filter: brightness(1.2);
}

.blog-header nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.blog-header nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.blog-header nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

.blog-header nav a:hover {
    color: var(--accent-primary);
    background: rgba(0, 0, 0, 0.3);
}

.blog-header nav a:hover::before {
    width: 80%;
}

/* Main Content */
.blog-main {
    min-height: calc(100vh - 200px);
    padding: 4rem 0;
}

.blog-intro {
    text-align: center;
    margin-bottom: 4rem;
    padding: 2rem 0;
}

.blog-intro h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    line-height: 1.2;
}

.blog-intro p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: var(--shadow-sm);
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-tertiary));
    opacity: 0;
    transition: opacity 0.4s;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
}

.article-card:hover::before {
    opacity: 1;
}

.article-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: var(--bg-tertiary);
    position: relative;
}

.article-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 14, 39, 0.3) 100%);
    pointer-events: none;
}

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

.article-card:hover .article-image img {
    transform: scale(1.1);
}

.article-content {
    padding: 2rem;
}

.article-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-content h3 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s;
    display: block;
}

.article-content h3 a:hover {
    color: var(--accent-primary);
}

.article-excerpt {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 0.95rem;
}

.article-meta {
    display: flex;
    gap: 1.25rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-meta span::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--accent-primary);
    border-radius: 50%;
    display: inline-block;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.read-more::after {
    content: '→';
    transition: transform 0.3s ease;
}

.read-more:hover {
    color: var(--accent-hover);
    gap: 0.75rem;
}

.read-more:hover::after {
    transform: translateX(4px);
}

/* Article Page */
.article-page {
    max-width: 900px;
    margin: 0 auto;
}

/* Full Width Article Page */
.article-page-full {
    padding: 0;
}

.article-hero-image {
    width: 100%;
    height: 60vh;
    min-height: 500px;
    max-height: 800px;
    overflow: hidden;
    position: relative;
    background: var(--bg-tertiary);
}

.article-hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(10, 14, 39, 0.4) 0%, rgba(10, 14, 39, 0.8) 100%);
    pointer-events: none;
}

.article-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.article-content-wrapper {
    max-width: 900px;
    margin: -100px auto 0;
    position: relative;
    z-index: 10;
    padding: 0 48px;
}

.full-article {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-md);
}

.article-page-full .full-article {
    margin-top: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 3rem 0;
    box-shadow: none;
}

.article-header {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.article-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    
    margin-top: 100px;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.article-featured-image {
    width: 100%;
    margin-bottom: 2.5rem;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

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

.article-content {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-secondary);
}

.article-content h2,
.article-content h3,
.article-content h4 {
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    font-weight: 700;
}

.article-content h2 {
    font-size: 2rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.article-content h3 {
    font-size: 1.6rem;
}

.article-content h4 {
    font-size: 1.3rem;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content ul,
.article-content ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.article-content li {
    margin-bottom: 0.75rem;
}

.article-content ul li::marker {
    color: var(--accent-primary);
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.article-content a {
    color: var(--accent-primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.article-content a:hover {
    color: var(--accent-hover);
    border-bottom-color: var(--accent-hover);
}

.article-content code {
    background: var(--bg-tertiary);
    color: var(--accent-primary);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: 'Courier New', monospace;
    border: 1px solid var(--border-color);
}

.article-content pre {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.article-content pre code {
    background: none;
    border: none;
    padding: 0;
}

.article-content blockquote {
    border-left: 4px solid var(--accent-primary);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    color: var(--text-secondary);
    font-style: italic;
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem 1.5rem;
    border-radius: 8px;
}

.article-navigation {
    margin-top: 3rem;
    text-align: center;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-tertiary) 100%);
    color: var(--bg-primary);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.btn-back::before {
    content: '←';
}

.btn-back:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    filter: brightness(1.1);
}

/* No Articles */
.no-articles {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    color: var(--text-secondary);
}

.no-articles p {
    font-size: 1.1rem;
}

/* Footer */
.blog-footer {
    background: #050508;
    border-top: 1px solid #1a2332;
    padding: 3rem 0;
    margin-top: 4rem;
    color: #8B9DC3;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-company {
    grid-column: span 2;
}

@media (min-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    text-decoration: none;
    width: fit-content;
}

.footer-logo-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.footer-logo-svg {
    width: 100%;
    height: 100%;
}

.footer-logo-text {
    display: flex;
    align-items: baseline;
}

.footer-logo-pauen {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    color: #5B8FC9;
}

.footer-logo-it {
    font-weight: 700;
    font-size: 1.25rem;
    color: #29B6F6;
}

.footer-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #8B9DC3;
    margin: 0;
    max-width: 500px;
}

.footer-heading {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links li {
    margin: 0;
}

.footer-links a {
    color: #8B9DC3;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #29B6F6;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid #1a2332;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    font-size: 0.875rem;
    color: #8B9DC3;
    margin: 0;
}

.footer-made {
    font-size: 0.875rem;
    color: #8B9DC3;
    margin: 0;
    font-family: 'Courier New', 'JetBrains Mono', monospace;
}

.footer-heart {
    color: #ef4444;
}

@media (max-width: 767px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-company {
        grid-column: 1;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    
    .footer-company {
        grid-column: 1 / -1;
    }
}

@media (min-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .blog-header .container {
        flex-direction: column;
        text-align: center;
    }

    .blog-header nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .blog-intro h2 {
        font-size: 2rem;
    }

    .blog-intro p {
        font-size: 1rem;
    }

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

    .article-header h1 {
        font-size: 2rem;
    }

    .full-article {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }

    .article-content {
        font-size: 1rem;
    }

    .article-content h2 {
        font-size: 1.6rem;
    }

    .article-content h3 {
        font-size: 1.3rem;
    }

    .article-hero-image {
        height: 40vh;
        min-height: 300px;
        max-height: 500px;
    }

    .article-content-wrapper {
        margin-top: -60px;
        padding: 0 24px;
    }

    .article-page-full .full-article {
        padding: 2rem 0;
    }

    .footer-company {
        grid-column: 1;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .blog-main {
        padding: 2rem 0;
    }

    .blog-intro {
        margin-bottom: 2rem;
    }

    .blog-intro h2 {
        font-size: 1.75rem;
    }

    .article-content {
        padding: 1.5rem;
    }

    .full-article {
        padding: 1.5rem;
    }

    .article-hero-image {
        height: 35vh;
        min-height: 250px;
    }

    .article-content-wrapper {
        margin-top: -40px;
        padding: 0 16px;
    }

    .article-page-full .full-article {
        padding: 1.5rem 0;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}

/* Selection */
::selection {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

