/* ==========================================================================
   urban solar – Globale Styles
   Basis-Theme: Hell & professionell
   ========================================================================== */

/* === Reset & Basis === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', BlinkMacSystemFont, -apple-system, Roboto, 'Lucida Sans', sans-serif;
    background-color: #f5f7fa;
    color: #374151;
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Rajdhani', BlinkMacSystemFont, -apple-system, Roboto, 'Lucida Sans', sans-serif;
}

em {
    font-family: 'Open Sans', BlinkMacSystemFont, -apple-system, Roboto, 'Lucida Sans', sans-serif;
}

button, .cta-btn, .nav-links a {
    font-family: 'Rajdhani', BlinkMacSystemFont, -apple-system, Roboto, 'Lucida Sans', sans-serif;
}

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

a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* === CSS-Variablen === */
:root {
    --bg-primary: #f5f7fa;
    --bg-nav: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f2f5;
    --border: #e2e5ea;
    --text: #374151;
    --text-dim: #6b7280;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent2: #0ea5e9;
    --green: #16a34a;
    --gold: #eab308;
    --white: #1a1a2e;
    --max-width: 1200px;
}

/* === Container === */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* === Navigation === */
nav {
    background-color: var(--bg-nav);
    border-bottom: 1px solid var(--border);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1.5rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    line-height: 1.2;
}

.nav-brand:hover {
    text-decoration: none !important;
}

.nav-brand img {
    height: 75px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.3rem;
    align-items: center;
}

.nav-links a {
    color: var(--text);
    font-size: 1.35rem;
    padding: 0.5rem 0.8rem;
    border-radius: 3px;
    transition: background 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
    background: rgba(37, 99, 235, 0.08);
    text-decoration: none;
}

/* Hamburger-Menü */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #374151;
    margin: 5px 0;
    transition: transform 0.3s, opacity 0.3s;
    border-radius: 2px;
}

.nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* === Responsive Navigation === */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-nav);
        flex-direction: column;
        padding: 5rem 1.5rem 2rem;
        gap: 0.2rem;
        transition: right 0.3s ease;
        border-left: 1px solid var(--border);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        font-size: 1.05rem;
        padding: 0.8rem 1rem;
        width: 100%;
        border-radius: 8px;
    }

    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.3);
        z-index: 998;
    }

    .nav-overlay.open {
        display: block;
    }
}

/* === Hero-Section (generisch) === */
.hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #1a2d4a 50%, #2a3f5f 100%);
    padding: 5rem 2rem 4rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero h1 .highlight {
    color: #eab308;
}

.hero .subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 650px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.hero .cta-btn {
    display: inline-block;
    background: #eab308;
    color: #1a1a2e;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.9rem 2.5rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    text-decoration: none !important;
}

.hero .cta-btn:hover {
    background: #c99a00;
    transform: translateY(-2px);
}

/* === Section === */
.section {
    padding: 4rem 0;
}

.section-alt {
    background: #eef1f6;
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-dim);
    font-size: 1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* === Cards Grid === */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2rem;
    transition: box-shadow 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.card .card-icon {
    margin-bottom: 1rem;
    width: 48px;
    height: 48px;
}

.card .card-icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--accent);
    stroke-width: 1.5;
    fill: none;
}

.card .card-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
}

.card p {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* === USP-Bereich === */
.usp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.usp-item {
    padding: 1.5rem;
}

.usp-item .icon {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.usp-item .icon svg {
    width: 36px;
    height: 36px;
    stroke: var(--accent);
    stroke-width: 1.5;
    fill: none;
}

.usp-item h3 {
    color: #1a1a2e;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.usp-item p {
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* === CTA-Banner === */
.cta-banner {
    background: linear-gradient(135deg, #1e3a5f, #2a3f5f);
    padding: 4rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.cta-banner h2 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

/* === Footer === */
footer {
    background: #1e3a5f;
    border-top: 1px solid var(--border);
    padding: 2rem;
    text-align: center;
    margin-top: auto;
}

footer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: #ffffff;
}

/* === Responsive === */
@media (max-width: 600px) {
    .hero {
        padding: 3rem 1rem 2.5rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }
}

/* === Animations === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Statusmeldung Kontaktformular === */
.form-hinweis { padding: 0.9rem 1.1rem; border-radius: 4px; margin-bottom: 1.5rem; font-size: 0.92rem; line-height: 1.5; }
.form-hinweis.erfolg { background: #ecfdf5; border: 1px solid #16a34a; color: #166534; }
.form-hinweis.fehler { background: #fef2f2; border: 1px solid #ef4444; color: #991b1b; }
