/* ==========================================================================
   KA-JUG – Joomla! User Group Karlsruhe
   Statischer Nachbau von ka-jug.de (YOOtheme-Look, ohne Framework)
   ========================================================================== */

:root {
    --primary: #375fe9;
    --primary-hover: #2550e7;
    --navy: #0b132e;
    --navy-deep: #070c1e;
    --heading: #1e3876;
    --text: #0d0d0e;
    --muted: #687186;
    --muted-light: #96a8bb;
    --bg-light: #f9faff;
    --bg-tint: #eff2ff;
    --border: #e0e5ff;
    --green: #00be83;
    --rose: #f6a2b1;
    --radius: 5px;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    color: var(--text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body { margin: 0; }

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--heading);
    line-height: 1.2;
    margin: 0 0 20px;
}

h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 20px; }
p:last-child { margin-bottom: 0; }

a { color: var(--primary); text-decoration: none; transition: color .15s ease-in-out; }
a:hover { color: var(--primary-hover); text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

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

.section { padding: 80px 0; }
.section-light { background: var(--bg-light); }
.section-navy { background: var(--navy); color: #cfd6e4; }
.section-navy h2 { color: #fff; }

.text-center { text-align: center; }
.muted { color: var(--muted); }

.overline {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: .78rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 14px;
}

.lead { font-size: 1.15rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   Buttons (Pill-Stil wie im Original-Theme)
   -------------------------------------------------------------------------- */
.btn {
    display: inline-block;
    padding: 0 32px;
    line-height: 48px;
    border-radius: 500px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: background-color .2s ease-in-out, color .2s ease-in-out, box-shadow .2s ease-in-out;
}
.btn:hover { text-decoration: none; }

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); color: #fff; box-shadow: 0 8px 20px rgba(55, 95, 233, .35); }

.btn-outline {
    background: transparent;
    color: var(--primary);
    box-shadow: inset 0 0 0 2px var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }

.btn-light { background: #fff; color: var(--heading); }
.btn-light:hover { background: var(--bg-tint); color: var(--heading); }

/* --------------------------------------------------------------------------
   Header / Navigation
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80px;
}

.navbar-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.navbar-logo:hover { text-decoration: none; }
.navbar-logo img { width: 78px; height: 50px; }

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-nav a {
    display: block;
    padding: 10px 22px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: .82rem;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: var(--heading);
}
.navbar-nav a:hover { color: var(--primary); text-decoration: none; }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--heading);
    margin: 5px 0;
    transition: transform .2s ease, opacity .2s ease;
}

@media (max-width: 767px) {
    .nav-toggle { display: block; }
    .navbar-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #fff;
        border-bottom: 1px solid var(--border);
        padding: 10px 0;
    }
    .navbar-nav.open { display: flex; }
    .navbar-nav a { padding: 14px 30px; }
    .site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
    .site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { padding: 90px 0 80px; position: relative; overflow: hidden; }

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-tint);
    color: var(--heading);
    border: 1px solid var(--border);
    border-radius: 500px;
    padding: 6px 18px;
    font-size: .8rem;
    font-weight: 600;
    margin-bottom: 24px;
}
.hero-status .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--rose);
    flex-shrink: 0;
}

.hero-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.hero-gallery img {
    border-radius: var(--radius);
    width: 100%;
    object-fit: cover;
    box-shadow: 0 14px 25px rgba(11, 19, 46, .08);
}
.hero-gallery .col { display: flex; flex-direction: column; gap: 18px; }
.hero-gallery .col:nth-child(2) { padding-top: 36px; }

@media (max-width: 959px) {
    .hero-grid { grid-template-columns: 1fr; gap: 50px; }
}

/* --------------------------------------------------------------------------
   Joomla! World Conference 2026 (Kachel unter dem Hero)
   -------------------------------------------------------------------------- */
.jwc { padding: 0 0 90px; }

.jwc-card {
    background: linear-gradient(120deg, var(--primary) 0%, var(--navy) 100%);
    color: #dfe6ff;
    border-radius: 10px;
    padding: 50px 56px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 50px;
    align-items: center;
    box-shadow: 0 25px 50px rgba(11, 19, 46, .25);
}
.jwc-card .overline { color: #aebfff; }
.jwc-card h2 { color: #fff; }
.jwc-card p { max-width: 640px; }
.jwc-sponsor { margin-top: 18px; }
.jwc-sponsor small { color: #aebfff; font-size: .78rem; }

.jwc-date {
    text-align: center;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 10px;
    padding: 28px 36px;
    font-family: var(--font-heading);
    line-height: 1.15;
}
.jwc-date span { display: block; }
.jwc-date .d { font-size: 2.4rem; font-weight: 700; color: #fff; }
.jwc-date .m { font-size: 1.05rem; font-weight: 600; color: #cdd9ff; text-transform: uppercase; letter-spacing: 2px; margin-top: 6px; }
.jwc-date .y { font-size: 1.4rem; font-weight: 700; color: #fff; margin-top: 2px; }

@media (max-width: 767px) {
    .jwc-card { grid-template-columns: 1fr; padding: 40px 32px; }
    .jwc-date { justify-self: start; }
}

/* --------------------------------------------------------------------------
   Feature-Karten („Was erwartet dich bei uns?“)
   -------------------------------------------------------------------------- */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 40px 32px;
    box-shadow: 0 14px 25px rgba(11, 19, 46, .05);
    transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(11, 19, 46, .1);
}
.feature-card img { width: 72px; height: 72px; margin-bottom: 22px; }
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: .95rem; margin: 0; }

@media (max-width: 959px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px) { .features { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Meetups / Status / Newsletter
   -------------------------------------------------------------------------- */
.meetup-status {
    background: #fff;
    border: 1px solid var(--border);
    border-left: 5px solid var(--primary);
    border-radius: var(--radius);
    padding: 36px 40px;
    margin: 40px 0;
    box-shadow: 0 14px 25px rgba(11, 19, 46, .05);
}
.meetup-status h3 { display: flex; align-items: center; gap: 10px; }
.meetup-status.security { border-left-color: var(--green); }

/* Security-News (aus security-news.json, siehe scripts/update-security-news.php) */
.security-news { margin-top: 28px; }
.security-news h4 { margin-bottom: 6px; font-size: .95rem; }
.security-news ul { list-style: none; margin: 0; padding: 0; }
.security-news li {
    padding: 12px 0 12px 20px;
    border-bottom: 1px solid var(--border);
    position: relative;
}
.security-news li:last-child { border-bottom: none; }
.security-news li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 19px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--muted-light);
}
.security-news li.sev-low::before { background: var(--green); }
.security-news li.sev-moderate::before { background: #f5a623; }
.security-news li.sev-high::before,
.security-news li.sev-critical::before { background: #e5484d; }
.security-news li.status-live::before { background: #e5484d; }
.security-news li.status-resolved::before { background: var(--green); }
.security-news a { font-weight: 600; font-size: .92rem; display: block; }
.security-news .news-note { display: block; color: var(--muted); font-size: .85rem; margin-top: 4px; }
.security-news .news-meta { display: block; color: var(--muted-light); font-size: .78rem; margin-top: 3px; }
.security-news-stand { color: var(--muted-light); }

/* gepinnte, kritische Alerts hervorheben */
.security-news li.pinned {
    background: #fff5f5;
    border: 1px solid #f3c0c2;
    border-radius: var(--radius);
    padding: 16px 16px 16px 34px;
    margin-bottom: 14px;
}
.security-news li.pinned::before { left: 14px; top: 24px; background: #e5484d; }
.security-news li.pinned a { color: #c0282d; }
.security-news li.pinned a::after {
    content: 'kritisch';
    display: inline-block;
    margin-left: 8px;
    padding: 1px 8px;
    border-radius: 500px;
    background: #e5484d;
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    vertical-align: middle;
}

.newsletter-card {
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius);
    padding: 50px;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}
.newsletter-card h3 { color: #fff; font-size: 1.45rem; }
.newsletter-card p { color: #dfe6ff; margin-bottom: 0; }
.newsletter-card .actions { text-align: right; }
.newsletter-card small { display: block; margin-top: 14px; color: #c3cfff; font-size: .75rem; }
.newsletter-card small a { color: #fff; text-decoration: underline; }

@media (max-width: 959px) {
    .newsletter-card { grid-template-columns: 1fr; }
    .newsletter-card .actions { text-align: left; }
}

/* FAQ */
.faq { max-width: 760px; margin: 70px auto 0; }
.faq h2 { margin-bottom: 30px; }
.faq details {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    padding: 0 24px;
}
.faq summary {
    cursor: pointer;
    padding: 18px 0;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--heading);
    list-style: none;
    position: relative;
    padding-right: 30px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 1.3rem;
    font-weight: 400;
    transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* Rückblick */
.review-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 50px;
    align-items: center;
    margin-top: 60px;
}
.review-grid img { border-radius: var(--radius); box-shadow: 0 14px 25px rgba(11, 19, 46, .08); }
@media (max-width: 959px) { .review-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Team
   -------------------------------------------------------------------------- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.team-member { text-align: center; }
.team-member img {
    border-radius: 50%;
    width: 100%;
    max-width: 210px;
    margin: 0 auto 22px;
    box-shadow: 0 14px 25px rgba(11, 19, 46, .1);
}
.team-member h3 { margin-bottom: 6px; }
.team-member p { color: var(--muted); font-size: .9rem; margin: 0; }

@media (max-width: 959px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 479px) { .team-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   CTA / Kontakt mit PHP-Snippet
   -------------------------------------------------------------------------- */
.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
@media (max-width: 959px) { .cta-grid { grid-template-columns: 1fr; } }

.code-window {
    background: var(--navy-deep);
    border-radius: 10px;
    box-shadow: 0 25px 50px rgba(11, 19, 46, .35);
    overflow: hidden;
    font-size: .85rem;
}
.code-window .titlebar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    background: var(--navy);
}
.code-window .titlebar i {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}
.code-window .titlebar i:nth-child(1) { background: #ff5f57; }
.code-window .titlebar i:nth-child(2) { background: #febc2e; }
.code-window .titlebar i:nth-child(3) { background: #28c840; }
.code-window .titlebar span {
    margin-left: 10px;
    color: var(--muted-light);
    font-family: Consolas, monaco, monospace;
    font-size: .75rem;
}
.code-window pre {
    margin: 0;
    padding: 24px 28px;
    overflow-x: auto;
    font-family: Consolas, monaco, monospace;
    line-height: 1.7;
    color: #e7e8ea;
}
.code-window .c-tag { color: var(--rose); }
.code-window .c-var { color: #8ab4ff; }
.code-window .c-key { color: var(--rose); }
.code-window .c-str { color: var(--green); }
.code-window .c-com { color: var(--muted); }

/* --------------------------------------------------------------------------
   Scroll-Effekte (Nachbau von UIkit Scrollspy & Grid-Parallax der alten Seite)
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
    .will-animate {
        opacity: 0;
        transform: translateY(35px);
        transition: opacity .6s ease-out, transform .6s ease-out;
    }
    .will-animate.fade-only {
        transform: none;
        transition: opacity .9s ease-out;
    }
    .will-animate.in-view {
        opacity: 1;
        transform: none;
    }
    .hero-gallery .col { will-change: transform; }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
    background: var(--navy);
    color: var(--muted-light);
    padding: 60px 0 40px;
    font-size: .82rem;
    line-height: 1.7;
}
.site-footer a { color: #cfd6e4; text-decoration: underline; }
.site-footer a:hover { color: #fff; }
.site-footer .legal { max-width: 900px; margin: 0 auto 30px; text-align: center; }
.site-footer .legal p { margin-bottom: 14px; }
.site-footer .bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding-top: 28px;
    text-align: center;
}
.site-footer .bottom p { margin-bottom: 6px; }

/* --------------------------------------------------------------------------
   Unterseiten (Impressum / Datenschutz)
   -------------------------------------------------------------------------- */
.page-content { padding: 70px 0 90px; max-width: 820px; margin: 0 auto; }
.page-content h1 { margin-bottom: 40px; }
.page-content h2 { font-size: 1.5rem; margin-top: 50px; }
.page-content h3 { font-size: 1.15rem; margin-top: 35px; }
.page-content h4 { font-size: 1rem; margin-top: 28px; color: var(--heading); }
.page-content p, .page-content li { color: var(--muted); font-size: .95rem; }
