/* === SOLAR TRAKTOR — STYLE.CSS === */
/* Open source solar-powered agriculture platform. Green/solar palette. */

:root {
    /* Text colors — never used as backgrounds */
    --text: #1a2e1a;
    --text-muted: #5a7a5a;
    --text-light: #8aaa8a;

    /* Surface colors — backgrounds only */
    --surface: #ffffff;
    --surface-alt: #f0f7f0;
    --surface-card: #ffffff;
    --header-bg: #1a3a1a;
    --footer-bg: #1a2e1a;

    /* Brand — solar green + gold */
    --green: #0fbe7c;
    --green-deep: #008c4a;
    --green-light: #dcfce7;
    --gold: #f59e0b;
    --gold-light: #fef3c7;
    --blue: #0fbe7c;
    --blue-light: #dcfce7;
    --red: #dc2626;
    --red-light: #fee2e2;
    --amber: #f59e0b;
    --amber-light: #fef3c7;
    --gray: #64748b;

    /* Misc */
    --border: #d4e4d4;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --radius: 8px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --text: #d4e8d4;
        --text-muted: #8aaa8a;
        --text-light: #5a7a5a;
        --surface: #0a1a0a;
        --surface-alt: #1a2e1a;
        --surface-card: #1a2e1a;
        --header-bg: #0a1a0a;
        --footer-bg: #050d05;
        --border: #2a4a2a;
        --shadow: 0 2px 8px rgba(0,0,0,0.3);
    }
    body { background: var(--surface); color: var(--text); }
    .hero { background: linear-gradient(135deg, #0a1a0a, #1a3a1a); }
    input, select, textarea {
        background: #2a4a2a; color: var(--text); border-color: #3a5a3a;
    }
    .hero-search input { background: #2a4a2a; color: var(--text); }
    .data-table th { background: var(--surface-alt); }
    .data-table tr:nth-child(even) { background: var(--surface-alt); }
    .section.bg-alt { background: var(--surface-alt); }
    .news-card { background: var(--surface-card); border-color: var(--border); }
    .news-card-source.press { background: #1a3d1e; color: #4ade80; }
    .news-card-source.blog { background: #3d2f0f; color: #fbbf24; }
    footer { background: var(--footer-bg); }
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--surface);
    color: var(--text);
    line-height: 1.6;
}

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

/* === HEADER === */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--header-bg);
    box-shadow: var(--shadow);
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    position: relative;
}
.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
}
.logo-accent { color: var(--green); }
nav { display: flex; gap: 1.25rem; margin-left: auto; }
.nav-link {
    text-decoration: none;
    color: #cbd5e1;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-link:hover { color: var(--green); }

/* Hamburger toggle */
.nav-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 8px;
    cursor: pointer;
    margin-left: auto;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, border-color 0.15s, transform 0.1s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
.nav-toggle:hover { background: rgba(15, 190, 124, 0.25); border-color: var(--green); }
.nav-toggle:active { transform: scale(0.95); }
.nav-toggle:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.nav-toggle-icon { display: block; pointer-events: none; }
.nav-toggle[aria-expanded="true"] .bar-top    { transform: translateY(5px) rotate(45deg); transform-origin: center; }
.nav-toggle[aria-expanded="true"] .bar-mid    { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar-bottom { transform: translateY(-5px) rotate(-45deg); transform-origin: center; }
.bar { transition: transform 0.2s ease, opacity 0.15s ease; }

@media (max-width: 900px) {
    .nav-toggle { display: inline-flex; }
    nav#siteNav {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        flex-direction: column;
        gap: 0;
        background: var(--header-bg);
        box-shadow: var(--shadow);
        padding: 0.5rem 0;
        margin-left: 0;
        max-height: calc(100vh - 100%);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    nav#siteNav.open { display: flex; }
    nav#siteNav .nav-link {
        padding: 0.95rem 1.25rem;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        font-size: 1rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    nav#siteNav .nav-link:last-child { border-bottom: none; }
}

/* === BUTTONS === */
.btn {
    padding: 0.6rem 1.4rem;
    border: none;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-deep); }
.btn-secondary { background: transparent; color: var(--green); border: 1px solid var(--green); }
.btn-secondary:hover { background: var(--green-light); }
.btn-full { width: 100%; padding: 0.75rem; }

/* === HERO === */
.hero {
    background: linear-gradient(135deg, var(--header-bg), #2a5a2a);
    color: #fff;
    padding: 0 1rem 2.5rem;
    text-align: center;
}
.hero-banner {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}
.hero-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hero-banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to bottom, transparent, var(--header-bg));
}
.hero h1 { font-size: 2.2rem; font-weight: 700; margin-bottom: 0.5rem; padding-top: 0.5rem; }
.highlight { color: var(--green); }
.hero-sub { font-size: 1.1rem; color: #bcd5bc; margin-bottom: 1.5rem; }
/* === VERSION BADGE === */
.version-badge {
    position: fixed;
    top: 1rem;
    left: 1rem;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    padding: 0.15em 0.4em;
    border-radius: 3px;
    z-index: 1000;
    pointer-events: none;
}
.hero-stats { display: flex; justify-content: center; gap: 2.5rem; flex-wrap: wrap; }
.hero-stats-frame {
    display: inline-block;
    background: #ffffff;
    border-radius: var(--radius);
    padding: 1.25rem 2.5rem;
    margin-top: 0.5rem;
    box-shadow: var(--shadow);
}
.hero-stats-frame .stat-num { color: var(--green-deep); }
.hero-stats-frame .stat-label { color: var(--text-muted); }
.stat { text-align: center; }
.stat-num { display: block; font-size: 1.8rem; font-weight: 700; color: var(--green-deep); }
.stat-label { font-size: 0.85rem; color: #8aaa8a; }

@media (max-width: 600px) {
    .hero h1 { font-size: 1.6rem; }
    .hero-stats { gap: 1.5rem; }
}

/* === SECTIONS === */
.section { padding: 2.5rem 1rem; }
.section.bg-alt { background: var(--surface-alt); }
.section h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text); }
.section-sub { color: var(--text-muted); margin-bottom: 1.5rem; font-size: 0.95rem; }
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.link-more { color: var(--green); text-decoration: none; font-size: 0.9rem; font-weight: 600; }
.link-more:hover { text-decoration: underline; }

/* === PLATFORM === */
.platform-image {
    text-align: center;
    margin-bottom: 2rem;
}
.platform-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}
.feature-card {
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.15s, box-shadow 0.15s;
}
.feature-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.feature-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.feature-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; color: var(--green-deep); }
.feature-card p { font-size: 0.9rem; color: var(--text-muted); }
.inspiration-section { margin-top: 1.5rem; }
.inspiration-section h3 { font-size: 1.1rem; margin-bottom: 0.75rem; color: var(--text); }
.inspiration-list { list-style: none; padding: 0; }
.inspiration-list li {
    padding: 0.4rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.inspiration-list a { color: var(--green-deep); text-decoration: none; }
.inspiration-list a:hover { text-decoration: underline; }

/* === OPENFARMBOX === */
.ofb-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
@media (max-width: 768px) { .ofb-content { grid-template-columns: 1fr; } }
.ofb-card {
    background: var(--surface-card);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.ofb-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--green-deep); }
.ofb-card p { font-size: 0.9rem; color: var(--text-muted); }
.ofb-list { list-style: none; padding: 0; }
.ofb-list li { padding: 0.3rem 0; font-size: 0.9rem; color: var(--text-muted); }
.ofb-list li::before { content: "→ "; color: var(--green); }

/* === NEWS === */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.25rem; }
.news-card {
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
    transition: transform 0.15s, box-shadow 0.15s;
    display: flex;
    flex-direction: column;
}
.news-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.news-card-source {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.6rem;
    align-self: flex-start;
    background: var(--green-light);
    color: var(--green-deep);
}
.news-card-title { font-size: 0.95rem; font-weight: 600; color: var(--text); margin-bottom: 0.4rem; line-height: 1.4; }
.news-card-summary { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.75rem; flex-grow: 1; }
.news-card-link { font-size: 0.8rem; color: var(--green-deep); text-decoration: none; font-weight: 600; }
.news-card-link:hover { text-decoration: underline; }
.news-card-date { font-size: 0.75rem; color: var(--text-light); margin-top: 0.5rem; }
@media (max-width: 768px) { .news-grid { grid-template-columns: 1fr; } }

/* === PRESS === */
.press-section { margin-bottom: 1.5rem; }
.press-section h3 { font-size: 1.1rem; margin-bottom: 0.75rem; color: var(--text); }
.press-list { list-style: none; padding: 0; }
.press-list li {
    padding: 0.4rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.press-list a { color: var(--green-deep); text-decoration: none; }
.press-list a:hover { text-decoration: underline; }
.press-internet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.5rem;
}
.press-internet-grid a {
    display: block;
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
    color: var(--green-deep);
    text-decoration: none;
    background: var(--surface-alt);
    border-radius: 4px;
    transition: background 0.15s;
}
.press-internet-grid a:hover { background: var(--green-light); }

/* === CO2 SECTION === */
.co2-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}
@media (max-width: 768px) { .co2-content { grid-template-columns: 1fr; } }
.co2-text p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 1rem; }
.co2-text .reg-note a { color: var(--green-deep); }
.co2-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* === IMPRINT === */
.imprint-content {
    background: var(--surface-card);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}
.imprint-content p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.imprint-content h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--green-deep); }
.privacy-list { list-style: none; padding: 0; margin-top: 0.5rem; }
.privacy-list li { padding: 0.3rem 0; font-size: 0.9rem; color: var(--text-muted); }
.privacy-list li::before { content: "✓ "; color: var(--green); }
.about-link { color: var(--green-deep); text-decoration: none; font-weight: 600; }
.about-link:hover { text-decoration: underline; }

/* === ABOUT === */
.about-content { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (max-width: 768px) { .about-content { grid-template-columns: 1fr; } }
.about-card {
    background: var(--surface-card);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.about-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--green-deep); }
.about-card p { font-size: 0.9rem; color: var(--text-muted); }
.reg-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.5rem; }
.reg-note a { color: var(--green-deep); }

/* === FOOTER === */
footer { background: var(--footer-bg); color: #cbd5e1; padding: 2rem 1rem 1rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-bottom: 1.5rem; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
.footer-col h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    color: #fff;
}
.footer-col a {
    display: block;
    color: #8aaa8a;
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.2rem 0;
    transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid #2a4a2a;
    padding-top: 1rem;
    font-size: 0.8rem;
    color: #64748b;
    text-align: center;
}