/*
Theme Name: jonoda Theme
Theme URI: https://jonoda.de
Description: jonoda Website Theme - SAP Freelancer Bernard Fricaud
Author: jonoda Fricaud IT Solutions
Version: 1.0
Template: hello-elementor
*/

/* ── Google Fonts ─────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=DM+Sans:wght@400;500;600&display=swap');

/* ── CSS Variables ────────────────────────────────────────────────────────── */
:root {
    --green:    #2DB928;
    --bg:       #0a0a0a;
    --surface:  #111111;
    --surface2: #161616;
    --border:   rgba(255,255,255,0.07);
    --muted:    #888;
    --font-display: 'Syne', sans-serif;
    --font-body:    'DM Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--bg) !important;
    color: #ccc !important;
    font-family: var(--font-body) !important;
    line-height: 1.7;
    min-height: 100vh;
}

/* ── Hide Hello Elementor defaults ───────────────────────────────────────── */
.site-header,
.site-footer,
.elementor-section-wrap > .elementor-section:first-child { /* fallback */ }

/* ── NAVBAR ───────────────────────────────────────────────────────────────── */
#jn-navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6%;
    background: rgba(10,10,10,0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 9999;
}
#jn-navbar img { height: 42px; width: auto; }

#jn-nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}
.jn-nav-link {
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.2s;
}
.jn-nav-link:hover { color: var(--green); }

.jn-nav-cta {
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    color: #000;
    text-decoration: none;
    background: var(--green);
    padding: 0.45rem 1.1rem;
    border-radius: 5px;
    transition: background 0.2s;
}
.jn-nav-cta:hover { background: #3fd438; color: #000; }

/* Burger */
#jn-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 10001;
}
.jn-bline {
    display: block;
    width: 24px; height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s;
}

/* Mobile overlay */
#jn-mobile-menu {
    display: none;
    position: fixed;
    top: 70px; left: 0; right: 0; bottom: 0;
    z-index: 9998;
    background: rgba(10,10,10,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}
.jn-mob-link {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}
.jn-mob-link:hover { color: var(--green); }
.jn-mob-cta {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: #000;
    text-decoration: none;
    background: var(--green);
    padding: 0.9rem 2.5rem;
    border-radius: 6px;
    margin-top: 1rem;
}

/* ── FOOTER ───────────────────────────────────────────────────────────────── */
#jn-footer {
    background: #111111;
    border-top: 1px solid var(--border);
    padding: 2rem 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
#jn-footer img { height: 36px; width: auto; }
#jn-footer-copy {
    font-size: 0.82rem;
    color: #555;
}
#jn-footer-copy a {
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
    margin: 0 0.3rem;
}
#jn-footer-copy a:hover { color: var(--green); }

/* ── CONTENT PAGES (Blog, Impressum, Datenschutz etc.) ───────────────────── */
.jn-page-wrap {
    max-width: 820px;
    margin: 0 auto;
    padding: 110px 5% 80px;
}

.jn-page-wrap h1 {
    font-family: var(--font-display) !important;
    font-size: 2.2rem !important;
    font-weight: 800 !important;
    color: #fff !important;
    margin-bottom: 2rem !important;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--border);
}
.jn-page-wrap h2 {
    font-family: var(--font-display) !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: #fff !important;
    margin-top: 2.5rem !important;
    margin-bottom: 0.8rem !important;
}
.jn-page-wrap h3 {
    font-family: var(--font-body) !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #ddd !important;
    margin-top: 1.5rem !important;
    margin-bottom: 0.5rem !important;
}
.jn-page-wrap p {
    font-size: 0.92rem !important;
    line-height: 1.85 !important;
    color: #aaa !important;
    margin-bottom: 1rem !important;
}
.jn-page-wrap a { color: var(--green) !important; text-decoration: none !important; }
.jn-page-wrap a:hover { text-decoration: underline !important; }
.jn-page-wrap ul, .jn-page-wrap ol {
    color: #aaa !important;
    font-size: 0.92rem !important;
    line-height: 1.85 !important;
    padding-left: 1.5rem !important;
    margin-bottom: 1rem !important;
}

/* ── BLOG ─────────────────────────────────────────────────────────────────── */
.jn-page-wrap article {
    border-bottom: 1px solid var(--border);
    padding-bottom: 2.5rem;
    margin-bottom: 2.5rem;
}
.jn-page-wrap .entry-title {
    font-family: var(--font-display) !important;
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    margin-bottom: 0.5rem !important;
}
.jn-page-wrap .entry-title a { color: #fff !important; }
.jn-page-wrap .entry-title a:hover { color: var(--green) !important; text-decoration: none !important; }
.jn-page-wrap .entry-meta {
    font-size: 0.8rem !important;
    color: #555 !important;
    margin-bottom: 0.8rem !important;
}
.jn-page-wrap .wp-post-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.2rem;
}
.jn-page-wrap .more-link { color: var(--green) !important; font-weight: 600 !important; }

/* ── RESPONSIVE ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    #jn-nav-links { display: none !important; }
    #jn-burger { display: flex !important; }
}
@media (max-width: 480px) {
    .jn-page-wrap { padding: 90px 4% 60px; }
    #jn-footer { flex-direction: column; text-align: center; }
}
