:root {
    /* BH-R Color Palette - Handwerklich Modern */
    --bg-dark: #1F2933;
    --bg-darker: #2E3A46;
    --bg-light: #F5F7FA;
    --white: #FFFFFF;

    --text-primary: #1F2933;
    --text-light: #D6DEE6;
    --text-muted: #A9B7C6;

    /* Service Colors */
    --heizung: #E5533D;
    /* Warm Red */
    --solar: #F2A900;
    /* Golden Yellow */
    --garten: #3BA55D;
    /* Fresh Green */
    --accent: #4A90D9;
    /* Trust Blue */

    /* Layout */
    --max-width: 1200px;
    --radius: 8px;
    --radius-lg: 16px;

    /* Effects */
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.15);

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--white);
    line-height: 1.6;
    font-size: 16px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 1.0625rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: 0.3s ease;
}

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--heizung);
    color: white;
}

.btn-primary:hover {
    background: #c94532;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-heizung {
    background: var(--heizung);
    color: white;
}

.btn-solar {
    background: var(--solar);
    color: var(--bg-dark);
}

.btn-garten {
    background: var(--garten);
    color: white;
}

.btn-outline-light {
    background: transparent;
    border: 2px solid var(--text-light);
    color: var(--text-light);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--bg-dark);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(31, 41, 51, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
}

.brand-icon {
    font-size: 1.5rem;
}

.brand-text {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
    opacity: 0.85;
}

.nav-links a:hover {
    opacity: 1;
    color: white;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
    color: white;
    padding: 120px 20px 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(59, 165, 93, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(242, 169, 0, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-title {
    font-size: clamp(2.75rem, 6vw, 4rem);
    line-height: 1.15;
    margin-bottom: 2rem;
    color: white;
}

.hero-description {
    font-size: 1.25rem;
    max-width: 750px;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.hero-actions .btn {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.hero-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 2rem;
}

/* Services Section */
.services-section {
    padding: 6rem 0;
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--text-muted);
    transition: 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-card.heizung::before {
    background: var(--heizung);
}

.service-card.solar::before {
    background: var(--solar);
}

.service-card.garten::before {
    background: var(--garten);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.service-card ul {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.service-card ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.service-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--garten);
    font-weight: bold;
}

/* About Section */
.about-section {
    padding: 6rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--bg-dark), var(--bg-darker));
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
}

.about-content h2 {
    color: var(--text-primary);
}

.about-values {
    margin-top: 2rem;
}

.about-values li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-primary);
    font-weight: 500;
}

.about-values li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: var(--heizung);
    font-weight: bold;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: var(--bg-dark);
    color: white;
    text-align: center;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-section p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Page Header */
.page-header {
    padding: 8rem 2rem 4rem;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
    color: white;
    text-align: center;
}

.page-header h1 {
    color: white;
    margin-bottom: 1rem;
}

.page-header .subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* Content Section */
.content-section {
    padding: 4rem 0;
}

.content-section h2 {
    margin-top: 3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.content-section h3 {
    margin-top: 2rem;
    color: var(--heizung);
}

.content-section ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.content-section ul li {
    padding: 0.625rem 0;
    padding-left: 1.75rem;
    position: relative;
    color: var(--text-muted);
}

.content-section ul li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: var(--heizung);
    font-weight: 700;
}

/* Footer */
.site-footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.125rem;
}

.footer-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-links-section h4,
.footer-contact h4 {
    color: white;
    margin-bottom: 1rem;
    font-family: var(--font-body);
    font-weight: 600;
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    padding: 0.375rem 0;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: white;
}

.footer-contact p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Pillar Colors for Service Pages */
.pillar-heizung .page-header {
    background: linear-gradient(135deg, #3d1a14 0%, var(--bg-dark) 100%);
}

.pillar-heizung .content-section h3 {
    color: var(--heizung);
}

.pillar-heizung .content-section ul li::before {
    color: var(--heizung);
}

.pillar-solar .page-header {
    background: linear-gradient(135deg, #3d2e00 0%, var(--bg-dark) 100%);
}

.pillar-solar .content-section h3 {
    color: var(--solar);
}

.pillar-solar .content-section ul li::before {
    color: var(--solar);
}

.pillar-garten .page-header {
    background: linear-gradient(135deg, #1a3d24 0%, var(--bg-dark) 100%);
}

.pillar-garten .content-section h3 {
    color: var(--garten);
}

.pillar-garten .content-section ul li::before {
    color: var(--garten);
}

/* Responsive */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-section {
        padding: 100px 20px 60px;
        min-height: auto;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }
}