/*
 * Stylesheet for the Röder Planung website. The design is inspired by the
 * color palette found on the provided banner: deep blues, greens and subtle
 * greys. The layout mirrors the structure of Joos GmbH’s website with
 * sections for home, services, about, and contact, as well as links to
 * Impressum and Datenschutz.
 */

/* CSS variables for easy theming */
:root {
    --color-dark: #0b1522;      /* primary dark background */
    --color-medium: #0f253b;    /* dark card backgrounds */
    --color-accent: #1f7c3a;    /* green accent inspired by the logo */
    --color-blue: #013a67;      /* blue inspired by the logo */
    --color-text: #e5e7eb;      /* near-white text for high contrast */
    --color-subtext: #a0a3ad;   /* muted text */
    --color-border: #1e2b40;    /* subtle border color */
    --nav-height: 72px;
    --transition-speed: 0.3s;
    font-family: 'Montserrat', 'Roboto', sans-serif;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-dark);
    color: var(--color-text);
    line-height: 1.6;
    font-weight: 300;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--color-blue);
}

/* Navigation */
header {
    position: fixed;
    top: 0;
					
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: rgba(11, 21, 34, 0.95);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    z-index: 1000;
}rgba(0, 0, 0, 0.95)

.navbar {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.nav-brand .logo {
    width: 48px;
    height: 48px;
    margin-right: 0.5rem;
}

.nav-brand .brand-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-text);
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.nav-links li a {
    color: var(--color-text);
    font-weight: 400;
    padding: 0.5rem 0;
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0%;
    height: 2px;
    background-color: var(--color-accent);
    transition: width var(--transition-speed) ease;
}

.nav-links li a:hover::after {
    width: 100%;
}

/* Toggle button hidden on larger screens; visible in responsive rules */
.nav-toggle {
    display: none;
}

/* Hero section */
.hero {
    height: 100vh;
    background-image: linear-gradient(rgba(11, 21, 34, 0.8), rgba(11, 21, 34, 0.8)), url('07dd532a-d41b-4503-829f-4ff3c55e4c18.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--nav-height);
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 1rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-subtext);
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-accent);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--color-blue);
}

.btn-secondary {
    background-color: var(--color-blue);
    color: #fff;
}

.btn-secondary:hover {
    background-color: var(--color-accent);
}

/* Sections */
section {
    padding: 4rem 1rem;
    /* When scrolling to anchors, offset the fixed header height so content is not obscured */
    scroll-margin-top: calc(var(--nav-height) + 1rem);
}

section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.section-intro {
    max-width: 800px;
    margin: 0 auto 2rem;
    text-align: center;
    color: var(--color-subtext);
}

/* Services grid */
.services-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background-color: var(--color-medium);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-accent);
}

/* When the service-icon contains an image, size it appropriately */
.service-icon img {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-block;
    object-fit: contain;
    margin: 0 auto;
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--color-subtext);
}

/* About section */
.about {
    background-color: var(--color-medium);
}

.about p {
    max-width: 1000px;
    margin: 0 auto 1rem;
    font-size: 1rem;
    color: var(--color-subtext);
}

/* Contact section */
.contact {
    background-color: var(--color-medium);
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin: 2rem 0;
}

.contact-item {
    min-width: 200px;
    font-size: 1rem;
    color: var(--color-subtext);
}

.contact-item strong {
    color: var(--color-text);
    font-weight: 500;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    color: var(--color-text);
}

.form-group input,
.form-group textarea {
    padding: 0.6rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background-color: var(--color-dark);
    color: var(--color-text);
    font-size: 0.95rem;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.contact-form button {
    align-self: flex-start;
}

/* Footer */
.footer {
    background-color: #06121d;
    padding: 2rem 1rem;
    color: var(--color-subtext);
    text-align: center;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    font-size: 0.9rem;
}

.footer a {
    color: var(--color-accent);
    margin: 0 0.5rem;
    font-size: 0.9rem;
}

.footer a:hover {
    color: var(--color-blue);
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .nav-links {
        gap: 0.6rem;
    }
    .nav-brand .brand-name {
        font-size: 1rem;
    }
}

/* Mobile navigation styles */
@media (max-width: 768px) {
    /* Hide the link list and show the toggle button */
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--color-medium);
        position: absolute;
        top: var(--nav-height);
        left: 0;
        padding: 1rem 0;
        gap: 0;
        border-top: 1px solid var(--color-border);
        z-index: 999;
    }
    .nav-links li {
        width: 100%;
        text-align: center;
        padding: 0.5rem 0;
    }
    .nav-links li a {
        width: 100%;
        display: block;
        padding: 0.75rem 0;
    }
    .nav-links.show {
        display: flex;
    }
    .nav-toggle {
        display: block;
        font-size: 1.8rem;
        color: var(--color-text);
        background: none;
        border: none;
        cursor: pointer;
        margin-left: auto;
        padding: 0.25rem 0.5rem;
    }
    .navbar {
        align-items: center;
    }
    /* Adjust services grid on small screens */
    .services-grid {
																																							  /* Override header background color to black */
header {
}

    background-color: #000;
}
