/* ─────────────────────────────────────────────────────────────────────
   Solhive — Brand-Stylesheet
   Bernstein/Honig-Palette · Bienenwaben-Geometrie · Tech-Optimismus
   ───────────────────────────────────────────────────────────────────── */

:root {
    /* Brand-Farben */
    --bg: #fffbeb;
    --bg-accent: #fef3c7;
    --bg-section: #ffffff;
    --bg-section-alt: #fef8e3;
    --primary: #d97706;
    --primary-dark: #92400e;
    --primary-light: #fbbf24;
    --accent: #65a30d;          /* Solar-Grün als Akzent */
    --text: #1f2937;
    --text-muted: #6b7280;
    --border: #fcd34d;
    --border-soft: #fde68a;

    /* Typografie */
    --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui,
                   "Helvetica Neue", Arial, sans-serif;

    /* Geometrie */
    --radius: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 2px 8px rgba(146, 64, 14, 0.06);
    --shadow-md: 0 8px 32px rgba(146, 64, 14, 0.10);
    --max-width: 1140px;
    --section-pad: clamp(4rem, 8vw, 7rem);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
    font-family: var(--font-system);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); text-decoration: underline; }

h1, h2, h3, h4 { margin-top: 0; color: var(--primary-dark); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

p { margin: 0 0 1rem; }
.lead { font-size: 1.15rem; color: var(--text); }
.muted { color: var(--text-muted); }

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

/* ─── Navigation ─────────────────────────────────────────────────── */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 251, 235, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem clamp(1.25rem, 4vw, 2.5rem);
    max-width: var(--max-width);
    margin: 0 auto;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 1.15rem;
}
.nav-brand .hex-mini {
    width: 28px;
    height: 28px;
    background: var(--primary);
    clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0% 50%);
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    font-size: 0.95rem;
}
.nav-links a {
    color: var(--text);
    font-weight: 500;
}
.nav-links a:hover { color: var(--primary); text-decoration: none; }
@media (max-width: 720px) {
    .nav-links { display: none; }
}

/* ─── Hero ──────────────────────────────────────────────────────── */
.hero {
    padding: clamp(4rem, 9vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
    background: linear-gradient(135deg, var(--bg) 0%, var(--bg-accent) 100%);
    position: relative;
    overflow: hidden;
}
.hero::before {
    /* Dezente Hex-Wabe im Hintergrund */
    content: "";
    position: absolute;
    top: -80px;
    right: -100px;
    width: 380px;
    height: 380px;
    background: var(--border-soft);
    clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0% 50%);
    opacity: 0.4;
    z-index: 0;
}
.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
    text-align: center;
    margin: 0 auto;
}
.hex {
    width: 90px;
    height: 90px;
    margin: 0 auto 2rem;
    background: var(--primary);
    clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0% 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.75rem;
}
.tagline {
    font-size: clamp(1.15rem, 2.5vw, 1.45rem);
    color: var(--text);
    margin: 0 0 1.5rem;
    font-weight: 500;
}
.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 580px;
    margin: 0 auto 2.5rem;
}
.cta-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.btn-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.btn-secondary {
    background: transparent;
    color: var(--primary-dark);
    border-color: var(--primary);
}
.btn-secondary:hover {
    background: var(--primary);
    color: white;
    text-decoration: none;
}

/* ─── Section ───────────────────────────────────────────────────── */
.section {
    padding: var(--section-pad) 0;
}
.section-alt {
    background: var(--bg-section-alt);
}
.section-white {
    background: var(--bg-section);
}
.section-header {
    max-width: 720px;
    margin: 0 auto 3.5rem;
    text-align: center;
}
.section-header .eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* ─── 3-Säulen Pillars ──────────────────────────────────────────── */
.pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.pillar {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-soft);
    transition: transform 0.2s, box-shadow 0.2s;
}
.pillar:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.pillar-icon {
    width: 56px;
    height: 56px;
    background: var(--bg-accent);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.75rem;
}

/* ─── Features Grid ─────────────────────────────────────────────── */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}
.feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem;
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border-soft);
}
.feature-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
}
.feature h3 {
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
    color: var(--text);
}
.feature p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--text-muted);
}

/* ─── 2-Karten Audience ─────────────────────────────────────────── */
.audience {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}
.audience-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    border: 2px solid var(--border-soft);
    transition: border-color 0.2s, transform 0.2s;
}
.audience-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}
.audience-card h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}
.audience-card ul {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0;
}
.audience-card li {
    padding: 0.5rem 0 0.5rem 1.75rem;
    position: relative;
    color: var(--text);
}
.audience-card li::before {
    content: "⬡";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

/* ─── Co-Branding Showcase ──────────────────────────────────────── */
.showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
@media (max-width: 880px) {
    .showcase { grid-template-columns: 1fr; }
}
.showcase-visual {
    background: linear-gradient(135deg, var(--bg-accent) 0%, var(--bg) 100%);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    border: 1px solid var(--border);
}
.showcase-mockup-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.showcase-hex {
    width: 64px;
    height: 64px;
    background: var(--primary);
    color: white;
    clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0% 50%);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.5rem;
}
.showcase-hex.partner-1 { background: #1e40af; }
.showcase-hex.partner-2 { background: #15803d; }
.showcase-hex.partner-3 { background: #7c3aed; }
.showcase-caption {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* ─── Open-Source Box ───────────────────────────────────────────── */
.os-box {
    max-width: 760px;
    margin: 0 auto;
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
}
.os-box code {
    background: var(--bg-accent);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--primary-dark);
}

/* ─── CTA-Block ─────────────────────────────────────────────────── */
.cta-block {
    background: var(--primary-dark);
    color: white;
    border-radius: var(--radius-lg);
    padding: clamp(2.5rem, 6vw, 4rem);
    text-align: center;
    max-width: 860px;
    margin: 0 auto;
}
.cta-block h2 {
    color: white;
}
.cta-block p { color: rgba(255, 255, 255, 0.85); font-size: 1.1rem; }
.cta-block .btn-primary {
    background: white;
    color: var(--primary-dark);
    border-color: white;
    margin-top: 1.5rem;
}
.cta-block .btn-primary:hover {
    background: var(--bg-accent);
    color: var(--primary-dark);
    border-color: var(--bg-accent);
}

/* ─── Footer ────────────────────────────────────────────────────── */
.footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.9);
    padding: 3rem 0 2rem;
    font-size: 0.95rem;
}
.footer a { color: white; }
.footer a:hover { color: var(--primary-light); }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2rem;
}
@media (max-width: 720px) {
    .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
.footer-brand {
    font-weight: 700;
    font-size: 1.15rem;
    color: white;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.footer-brand .hex-mini {
    width: 28px;
    height: 28px;
    background: var(--primary-light);
    clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0% 50%);
}
.footer h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 1rem;
}
.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer li {
    padding: 0.3rem 0;
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ─── Sub-Pages (Impressum + Datenschutz) ──────────────────────── */
.legal-page {
    background: var(--bg);
    min-height: 70vh;
    padding: clamp(2rem, 6vw, 4rem) 0;
}
.legal-content {
    max-width: 760px;
    margin: 0 auto;
    background: white;
    padding: clamp(2rem, 5vw, 3rem);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft);
}
.legal-content h1 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
}
.legal-content h2 {
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--primary-dark);
}
.legal-content h3 {
    font-size: 1.1rem;
    margin-top: 1.5rem;
    color: var(--primary-dark);
}
.legal-content p, .legal-content li {
    color: var(--text);
}
.legal-content ul, .legal-content ol {
    padding-left: 1.5rem;
}
.legal-back {
    display: inline-block;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}


/* ─── Language switcher (DE/EN) ─────────────────────────────────── */
.nav-lang {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding-left: 1rem;
    margin-left: 0.5rem;
    border-left: 1px solid var(--border-soft);
    font-size: 0.9rem;
    font-weight: 600;
}
.nav-lang a { color: var(--text-muted); }
.nav-lang a:hover { color: var(--primary); text-decoration: none; }
.nav-lang-active { color: var(--primary-dark); }
.nav-lang span, .nav-lang a { text-transform: uppercase; letter-spacing: 0.03em; }
