/* ============================================================
   Roster 365 – Shared Stylesheet
   Software Kitchen GmbH · https://www.roster365.net
   ============================================================ */

/* ── FONTS ─────────────────────────────────────────────────── */
@font-face {
    font-family: 'DM Sans';
    src: url('fonts/DMSans-Variable.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Barlow Condensed';
    src: url('fonts/BarlowCondensed-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Barlow Condensed';
    src: url('fonts/BarlowCondensed-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Barlow Condensed';
    src: url('fonts/BarlowCondensed-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* ── CSS VARIABLES ─────────────────────────────────────────── */
:root {
    --dark:         #080f14;
    --dark2:        #0d1a22;
    --dark3:        #122230;
    --accent:       #2ecc9a;
    --accent-blue:  #2e8fcc;
    --accent2:      #1a7fa8;
    --text:         #e2eef5;
    --text-muted:   #7fafc0;
    --border:       rgba(46,204,154,0.1);
    --gradient:     linear-gradient(135deg, #2e8fcc, #2ecc9a);
    --font-display: 'Barlow Condensed', sans-serif;
    --font-body:    'DM Sans', sans-serif;

    /* Blog / Article (light content area) */
    --article-bg:      #f8f9fa;
    --article-text:    #1a2530;
    --article-muted:   #4a6070;
    --article-border:  #e0e8ed;
    --article-heading: #0d1a22;
}

/* ── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    background: var(--dark);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ── NAVIGATION ─────────────────────────────────────────────── */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 4rem;
    background: rgba(10,15,26,0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: padding 0.3s;
}
.nav-logo img { height: 44px; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--accent); }
.nav-cta {
    background: var(--gradient);
    color: #fff;
    padding: 0.55rem 1.4rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
}
.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); }

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn-primary {
    background: var(--gradient);
    color: #fff;
    padding: 0.85rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46,204,154,0.35);
}
.btn-secondary {
    background: transparent;
    color: var(--text);
    padding: 0.85rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: 1px solid var(--border);
    transition: all 0.2s;
}
.btn-secondary:hover {
    border-color: rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.05);
}
.btn-full { width: 100%; text-align: center; justify-content: center; }

/* ── SECTION SHARED ─────────────────────────────────────────── */
section { padding: 6rem 4rem; }

.section-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 1rem;
}
.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 560px;
}

/* ── FOOTER ─────────────────────────────────────────────────── */
footer {
    background: var(--dark);
    border-top: 1px solid var(--border);
    padding: 3rem 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.footer-logo img { height: 36px; opacity: 0.7; }
.footer-links { display: flex; gap: 2rem; flex-wrap: wrap; }
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--text-muted); font-size: 0.82rem; }
.footer-keywords {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.2);
    max-width: 600px;
    text-align: center;
    margin: 0 auto;
    padding-top: 1.5rem;
}

/* ── ANIMATIONS ─────────────────────────────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes ticker {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ── TICKER ─────────────────────────────────────────────────── */
.ticker-wrap {
    overflow: hidden;
    background: var(--accent);
    padding: 0.6rem 0;
}
.ticker {
    display: flex;
    gap: 3rem;
    animation: ticker 20s linear infinite;
    width: max-content;
}
.ticker span {
    color: #000;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}
.ticker span::before { content: '● '; }

/* ── FEATURE LIST ────────────────────────────────────────────── */
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}
.feature-list li::before {
    content: '✓';
    color: var(--accent);
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.05rem;
}

/* ── FORM SHARED ─────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.form-group input,
.form-group textarea,
.form-group select {
    background: var(--dark3);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: var(--font-body);
    transition: border-color 0.2s;
    outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: rgba(46,204,154,0.5); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}
.form-check input[type="checkbox"] {
    width: 18px; height: 18px;
    min-width: 18px;
    accent-color: var(--accent);
    margin-top: 0.15rem;
    cursor: pointer;
}
.form-check-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}
.form-check-label a { color: var(--accent); text-decoration: underline; }

/* ── COOKIE BANNER ───────────────────────────────────────────── */
.cookie-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 999;
    background: var(--dark2);
    border-top: 1px solid var(--border);
    padding: 1.25rem 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    box-shadow: 0 -8px 30px rgba(0,0,0,0.4);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}
.cookie-banner.visible  { transform: translateY(0); }
.cookie-banner.hidden   { display: none; }
.cookie-text {
    font-size: 0.88rem;
    color: var(--text-muted);
    max-width: 700px;
    line-height: 1.6;
}
.cookie-text a { color: var(--accent); text-decoration: underline; }
.cookie-buttons { display: flex; gap: 0.75rem; flex-shrink: 0; }
.cookie-accept {
    background: var(--gradient);
    color: #fff;
    border: none;
    padding: 0.6rem 1.4rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    font-family: var(--font-body);
    transition: opacity 0.2s;
}
.cookie-accept:hover { opacity: 0.9; }
.cookie-decline {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 0.6rem 1.4rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    font-family: var(--font-body);
    transition: border-color 0.2s, color 0.2s;
}
.cookie-decline:hover { border-color: rgba(255,255,255,0.25); color: var(--text); }

/* ============================================================
   INDEX PAGE – Specific Styles
   ============================================================ */

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 8rem 4rem 5rem;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: url('images/A8496353471920-1024x574.jpg') center/cover no-repeat;
    filter: brightness(0.72) saturate(0.9);
    z-index: 0;
}
.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8,15,20,0.82) 40%, rgba(8,15,20,0.1) 100%);
    z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 700px; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(46,204,154,0.12);
    border: 1px solid rgba(46,204,154,0.3);
    color: var(--accent);
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    animation: fadeUp 0.6s ease both;
}
.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    animation: fadeUp 0.6s 0.1s ease both;
}
.hero h1 span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 560px;
    margin-bottom: 2.5rem;
    animation: fadeUp 0.6s 0.2s ease both;
}
.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeUp 0.6s 0.3s ease both;
}
.hero-stats {
    position: absolute;
    right: 4rem;
    bottom: 4rem;
    z-index: 2;
    display: flex;
    gap: 3rem;
    animation: fadeUp 0.6s 0.4s ease both;
}
.stat-item { text-align: center; }
.stat-number {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    line-height: 1;
}
.stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.3rem;
}

/* Features */
.features { background: var(--dark2); }
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3.5rem;
}
.feature-card {
    background: var(--dark3);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    transition: border-color 0.3s, transform 0.3s;
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s;
}
.feature-card:hover { border-color: rgba(46,204,154,0.3); transform: translateY(-3px); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
    width: 48px; height: 48px;
    background: rgba(46,204,154,0.12);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.4rem;
}
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.feature-card p  { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* Screenshots */
.screenshots { background: var(--dark); }
.screenshots-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3.5rem;
}
.screenshots-images { display: flex; gap: 1rem; align-items: flex-start; }
.screenshot-img {
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    width: 48%;
    transition: transform 0.3s;
}
.screenshot-img:first-child { margin-top: 2rem; }
.screenshot-img:hover { transform: scale(1.02); }
.screenshots-text .section-subtitle { margin-bottom: 2rem; }

/* Pricing */
.pricing { background: var(--dark2); }
.pricing-center { text-align: center; }
.pricing-center .section-subtitle { margin: 0 auto 3.5rem; }
.pricing-card {
    max-width: 480px;
    margin: 0 auto;
    background: var(--dark3);
    border: 1px solid rgba(46,204,154,0.3);
    border-radius: 16px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}
.pricing-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--gradient);
}
.pricing-badge {
    display: inline-block;
    background: var(--gradient);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}
.pricing-name {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.pricing-price {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.25rem;
}
.pricing-note  { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 2rem; }
.pricing-discount {
    display: inline-block;
    background: rgba(239,68,68,0.15);
    border: 1px solid rgba(239,68,68,0.3);
    color: #f87171;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    margin-bottom: 2rem;
}
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2.5rem; text-align: left; }
.pricing-features li { display: flex; align-items: center; gap: 0.75rem; font-size: 0.95rem; }
.pricing-features li::before { content: '✓'; color: var(--accent); font-weight: 700; }

/* Demo section */
.demo { background: var(--dark); }
.demo-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}
.demo-card {
    background: var(--dark3);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}
.demo-card-header {
    background: var(--dark2);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red    { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green  { background: #22c55e; }
.demo-card-body { padding: 1.5rem; }
.demo-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.demo-table th { color: var(--text-muted); font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--border); text-align: left; }
.demo-table td { padding: 0.6rem 0.75rem; color: var(--text); }
.demo-table tr:not(:last-child) td { border-bottom: 1px solid rgba(255,255,255,0.04); }
.role-badge { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 4px; font-size: 0.75rem; font-weight: 600; }
.role-manager  { background: rgba(245,158,11,0.15); color: #fbbf24; }
.role-admin    { background: rgba(239,68,68,0.15);  color: #f87171; }
.role-employee { background: rgba(34,197,94,0.15);  color: #4ade80; }
.demo-cta-btn {
    width: 100%;
    background: var(--accent);
    color: #000;
    border: none;
    padding: 0.85rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 1.5rem;
    transition: opacity 0.2s;
    font-family: var(--font-body);
}
.demo-cta-btn:hover { opacity: 0.9; }

/* Contact */
.contact { background: var(--dark2); }
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-submit {
    background: var(--gradient);
    color: #fff;
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    font-family: var(--font-body);
    transition: opacity 0.2s, transform 0.2s;
    align-self: flex-start;
}
.form-submit:hover { opacity: 0.9; transform: translateY(-1px); }
.contact-info { display: flex; flex-direction: column; gap: 2rem; padding-top: 1rem; }
.contact-info-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-info-icon {
    width: 44px; height: 44px;
    background: rgba(46,204,154,0.12);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.contact-info-text h4 { font-weight: 700; margin-bottom: 0.2rem; }
.contact-info-text p  { color: var(--text-muted); font-size: 0.9rem; }

/* ============================================================
   BLOG – Shared Styles (blog-index + article pages)
   ============================================================ */

/* Blog Hero */
.blog-hero {
    background: var(--dark2);
    padding: 8rem 4rem 4rem;
    border-bottom: 1px solid var(--border);
}
.blog-hero-inner { max-width: 780px; margin: 0 auto; }

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--text-muted); opacity: 0.5; }

.article-category {
    display: inline-block;
    background: rgba(46,204,154,0.12);
    border: 1px solid rgba(46,204,154,0.3);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    margin-bottom: 1.25rem;
}
.blog-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--text);
}
.blog-hero .lead {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 680px;
}
.article-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: var(--text-muted);
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}
.article-meta span { display: flex; align-items: center; gap: 0.4rem; }

/* Article content area (light background) */
.article-wrapper {
    background: var(--article-bg);
    padding: 4rem 4rem 5rem;
}
.article-layout {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 4rem;
    align-items: start;
}
.article-body { min-width: 0; }

.article-body h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--article-heading);
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--article-heading);
    margin: 2rem 0 0.75rem;
}
.article-body p {
    font-size: 1rem;
    color: var(--article-text);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}
.article-body ul,
.article-body ol {
    margin: 0 0 1.25rem 1.5rem;
    color: var(--article-text);
}
.article-body li {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 0.4rem;
}
.article-body strong { color: var(--article-heading); font-weight: 700; }
.article-body a { color: #0f6e56; text-decoration: underline; transition: color 0.2s; }
.article-body a:hover { color: #1D9E75; }

/* Info / Warning boxes */
.info-box {
    background: #e8f8f3;
    border-left: 4px solid var(--accent);
    border-radius: 0 8px 8px 0;
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
}
.info-box-title {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0f6e56;
    margin-bottom: 0.5rem;
}
.info-box p { color: #1a3d2e; margin-bottom: 0; font-size: 0.95rem; }

.warning-box {
    background: #fff8e8;
    border-left: 4px solid #f59e0b;
    border-radius: 0 8px 8px 0;
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
}
.warning-box-title {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #854F0B;
    margin-bottom: 0.5rem;
}
.warning-box p { color: #3d2800; margin-bottom: 0; font-size: 0.95rem; }

/* CTA box inside article */
.article-cta {
    background: var(--dark2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    margin: 2.5rem 0;
    text-align: center;
}
.article-cta h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 0.75rem;
}
.article-cta p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.5rem; }
.article-cta a {
    display: inline-block;
    background: var(--gradient);
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
}
.article-cta a:hover { opacity: 0.9; transform: translateY(-2px); }

/* Tables inside article */
.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.92rem;
}
.article-body th {
    background: var(--dark2);
    color: var(--text);
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.article-body td {
    padding: 0.7rem 1rem;
    color: var(--article-text);
    border-bottom: 1px solid var(--article-border);
}
.article-body tr:last-child td { border-bottom: none; }
.article-body tr:nth-child(even) td { background: #f0f4f6; }

/* Timeline (used in XRechnung article) */
.timeline { margin: 1.5rem 0 2rem; position: relative; }
.timeline::before {
    content: '';
    position: absolute;
    left: 19px; top: 0; bottom: 0;
    width: 2px;
    background: var(--article-border);
}
.timeline-item { display: flex; gap: 1.25rem; padding-bottom: 1.5rem; position: relative; }
.timeline-dot {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; font-weight: 800;
    flex-shrink: 0; z-index: 1;
}
.tl-green  { background: #e8f8f3; color: #0f6e56; border: 2px solid var(--accent); }
.tl-yellow { background: #fff8e8; color: #854f0b; border: 2px solid #f59e0b; }
.tl-red    { background: #fef2f2; color: #991b1b; border: 2px solid #ef4444; }
.tl-blue   { background: #eff6ff; color: #1e40af; border: 2px solid #3b82f6; }
.timeline-content { padding-top: 0.35rem; }
.timeline-year  { font-weight: 700; color: var(--article-heading); margin-bottom: 0.2rem; font-size: 1rem; }
.timeline-desc  { font-size: 0.92rem; color: var(--article-muted); line-height: 1.55; }

/* Sidebar */
.sidebar { position: sticky; top: 100px; }
.sidebar-card {
    background: #fff;
    border: 1px solid var(--article-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.sidebar-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--article-heading);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent);
}
.toc-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.toc-list a {
    font-size: 0.88rem;
    color: var(--article-muted);
    text-decoration: none;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    transition: color 0.2s;
    line-height: 1.4;
}
.toc-list a::before { content: '→'; color: var(--accent); flex-shrink: 0; font-size: 0.8rem; margin-top: 0.1rem; }
.toc-list a:hover { color: #0f6e56; }
.sidebar-cta {
    background: var(--dark2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}
.sidebar-cta h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 0.5rem;
}
.sidebar-cta p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}
.sidebar-cta a {
    display: block;
    background: var(--gradient);
    color: #fff;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    transition: opacity 0.2s;
}
.sidebar-cta a:hover { opacity: 0.9; }

/* FAQ Akkordeon */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; margin: 1.5rem 0; }
.faq-item {
    border: 1px solid var(--article-border);
    border-radius: 8px;
    overflow: hidden;
}
.faq-question {
    list-style: none;
    padding: 1rem 1.25rem;
    font-weight: 700;
    font-size: 1rem;
    color: var(--article-heading);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    transition: background 0.2s;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
    content: '+';
    color: var(--accent);
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1;
    transition: transform 0.2s;
}
.faq-item[open] .faq-question { background: #f0faf6; }
.faq-item[open] .faq-question::after { transform: rotate(45deg); }
.faq-answer {
    padding: 0 1.25rem 1rem;
    background: #f0faf6;
    border-top: 1px solid var(--article-border);
}
.faq-answer p { margin-top: 0.75rem; margin-bottom: 0; color: var(--article-text); font-size: 0.95rem; }

/* ============================================================
   BLOG INDEX – Specific Styles
   ============================================================ */
.blog-hero.centered { text-align: center; }
.blog-hero.centered .blog-hero-inner { max-width: 100%; }
.blog-hero.centered h1 {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    margin-bottom: 1rem;
}
.blog-hero.centered p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto 2rem;
}

.filter-bar {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 2rem 4rem;
    background: var(--dark);
    border-bottom: 1px solid var(--border);
}
.filter-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.2s;
}
.filter-btn:hover,
.filter-btn.active {
    background: rgba(46,204,154,0.1);
    border-color: rgba(46,204,154,0.4);
    color: var(--accent);
}

.blog-grid-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 4rem 6rem;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}
.article-card {
    background: var(--dark2);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s, transform 0.3s;
    position: relative;
}
.article-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s;
}
.article-card:hover { border-color: rgba(46,204,154,0.3); transform: translateY(-3px); }
.article-card:hover::before { opacity: 1; }
.card-body { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; }
.card-category {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(46,204,154,0.1);
    border: 1px solid rgba(46,204,154,0.25);
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    margin-bottom: 0.9rem;
    width: fit-content;
}
.card-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text);
    line-height: 1.2;
    margin-bottom: 0.75rem;
}
.card-excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
    flex: 1;
    margin-bottom: 1.25rem;
}
.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-muted);
}
.card-read-more { color: var(--accent); font-weight: 600; font-size: 0.82rem; }

.empty-state { grid-column: 1 / -1; text-align: center; padding: 4rem 2rem; color: var(--text-muted); }
.empty-state h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 0.75rem;
}
.empty-state p { font-size: 0.95rem; max-width: 400px; margin: 0 auto; }

.cta-banner {
    background: var(--dark2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 4rem;
    text-align: center;
}
.cta-banner h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}
.cta-banner p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto 2rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    nav { padding: 1rem 2rem; }
    .nav-links { display: none; }
    section { padding: 4rem 2rem; }

    /* Index */
    .hero { padding: 7rem 2rem 4rem; }
    .hero-stats { position: static; margin-top: 3rem; }
    .screenshots-layout,
    .demo-layout,
    .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; }
    .screenshots-images { justify-content: center; }
    .form-row { grid-template-columns: 1fr; }

    /* Blog */
    .blog-hero { padding: 6rem 2rem 3rem; }
    .filter-bar { padding: 1.5rem 2rem; }
    .blog-grid-wrap { padding: 2.5rem 1.5rem 4rem; }
    .article-wrapper { padding: 2.5rem 1.5rem 4rem; }
    .article-layout { grid-template-columns: 1fr; gap: 2.5rem; }
    .sidebar { position: static; }
    .cta-banner { padding: 3rem 2rem; }

    footer { padding: 2rem; flex-direction: column; align-items: flex-start; }
}