/* ═══════════════════════════════════════════════════════════
   bhkw-anlagen.com — Globales Design System (light only)
   Apple-Pastell, abgeleitet aus stromfee.ai v2
   Version: 2026-04-24
   ═══════════════════════════════════════════════════════════ */

:root {
    /* Basis */
    --bg: #fdfcff;
    --bg-soft: #faf8ff;
    --bg-mute: #f5f3fa;
    --bg-card: #ffffff;
    --text: #1d1d1f;
    --text-soft: #515154;
    --text-muted: #86868b;
    --text-inv: #ffffff;
    --border: #e6e1f0;
    --border-soft: #efeaf8;

    /* Akzente (Markenfamilie mit stromfee.ai) */
    --accent: #a78bfa;
    --accent-bright: #c4b5fd;
    --accent-ultra: #ddd6fe;
    --accent-glow: rgba(167, 139, 250, 0.32);
    --accent-dim: rgba(167, 139, 250, 0.08);
    --emerald: #86efac;
    --pistazie: #bbf7d0;

    /* Shadows */
    --card-shadow: 0 1px 2px rgba(167,139,250,0.05), 0 8px 24px rgba(167,139,250,0.06);
    --card-shadow-hover: 0 1px 3px rgba(167,139,250,0.05), 0 24px 60px rgba(167,139,250,0.10), 0 0 40px rgba(187,247,208,0.18);

    /* Typo */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', monospace;

    /* Layout */
    --radius: 16px;
    --radius-sm: 10px;
    --max-w: 1200px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);

    /* Nav */
    --nav-h: 60px;
}

/* Legacy-Aliase (damit bestehende seiten-eigene CSS-Regeln nicht brechen) */
:root {
    --bg2: var(--bg-soft);
    --bg3: var(--bg-mute);
    --text2: var(--text-soft);
    --green: var(--emerald);
    --border-color: var(--border);
}

html[data-theme="light"], html {
    background: var(--bg);
    color: var(--text);
}

body.bhkw-global-body {
    font-family: var(--font);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding-top: var(--nav-h);
}

/* ═══ Navbar (gerendert von bhkw-nav.js in #bhkw-nav) ═══ */
#bhkw-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    background: rgba(253, 252, 255, 0.82);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid var(--border-soft);
    z-index: 1000;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 clamp(16px, 3vw, 32px);
    font-family: var(--font);
}
.bnav-brand {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: -0.01em;
    justify-self: start;
}
.bnav-brand .dot { color: var(--accent); }
.bnav-links {
    display: flex;
    gap: 2px;
    justify-self: center;
    overflow-x: auto;
    scrollbar-width: none;
}
.bnav-links::-webkit-scrollbar { display: none; }
.bnav-link {
    padding: 8px 14px;
    border-radius: 9px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-soft);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.15s var(--ease);
}
.bnav-link:hover {
    background: var(--accent-dim);
    color: var(--text);
}
.bnav-link.active {
    background: var(--accent-dim);
    color: var(--accent);
    font-weight: 600;
}
.bnav-right {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-self: end;
}
.bnav-cta {
    padding: 8px 16px;
    border-radius: 9px;
    background: var(--accent);
    color: var(--text-inv);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.15s var(--ease);
    white-space: nowrap;
}
.bnav-cta:hover {
    background: var(--accent-bright);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

/* ═══ Footer (übernommen aus stromfee.ai) ═══ */
.sf-footer {
    background: var(--bg);
    color: var(--text-muted);
    border-top: 1px solid var(--border-soft);
    padding: 40px 0;
    font-family: var(--font);
    font-size: 0.88rem;
    margin-top: 4rem;
    position: relative;
    z-index: 60;
}
.sf-footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.sf-footer a {
    color: var(--text-soft);
    text-decoration: none;
    transition: color 0.15s var(--ease);
}
.sf-footer a:hover { color: var(--accent); }
.sf-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}

/* ═══ MOBILE BREAKPOINTS ═══ */

/* Tablet / small desktop */
@media (max-width: 900px) {
    .bnav-link { padding: 7px 10px; font-size: 0.83rem; }
}

/* Phone landscape / big phone */
@media (max-width: 720px) {
    :root { --nav-h: 56px; }
    #bhkw-nav { grid-template-columns: auto 1fr auto; padding: 0 12px; gap: 10px; }
    .bnav-brand { font-size: 0.95rem; flex-shrink: 0; }
    .bnav-links { gap: 0; justify-self: stretch; padding-left: 4px; mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 18px), transparent 100%); -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 18px), transparent 100%); }
    .bnav-link { padding: 6px 10px; font-size: 0.8rem; flex-shrink: 0; }
    .bnav-cta { display: none; }
}

/* Phone portrait — verstecke "anlagen"-Suffix, Brand wird "BHKW." */
@media (max-width: 480px) {
    :root { --nav-h: 52px; }
    #bhkw-nav { padding: 0 10px; gap: 4px; }
    .bnav-brand-suffix { display: none; }
    .bnav-brand { font-size: 0.92rem; letter-spacing: -0.005em; }
    .bnav-link { padding: 5px 8px; font-size: 0.76rem; }
    .bnav-right { display: none; }              /* CTA auf Phone Portrait weg */
    #bhkw-nav { grid-template-columns: auto 1fr; } /* 2 Spalten reichen */
}

/* Sehr schmale Geräte (iPhone SE 320px, kleiner Android) */
@media (max-width: 360px) {
    .bnav-brand { font-size: 0.86rem; }
    .bnav-link { padding: 4px 7px; font-size: 0.72rem; }
}

/* Footer mobile layout */
@media (max-width: 720px) {
    .sf-footer-inner { flex-direction: column; text-align: center; gap: 14px; padding: 0 18px; }
    .sf-footer ul { justify-content: center; gap: 12px 18px; }
    .sf-footer { padding: 32px 0; margin-top: 3rem; }
}
