/* ========================================
   PM-ENG GmbH – Modern Minimal Design
   ======================================== */

:root {
    --color-primary: #1a2b4a;
    --color-accent: #2563eb;
    --color-accent-hover: #1d4ed8;
    --color-text: #1e293b;
    --color-text-light: #64748b;
    --color-bg: #ffffff;
    --color-bg-soft: #f8fafc;
    --color-bg-muted: #f1f5f9;
    --color-border: #e2e8f0;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --max-width: 1140px;
    --radius: 8px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
    --transition: 0.2s ease;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

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

/* ---- Navigation ---- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition);
}
.nav.scrolled {
    box-shadow: var(--shadow-sm);
}
.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}
.logo-pm { color: var(--color-accent); }
.logo-eng { color: var(--color-primary); }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-link {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-light);
    border-radius: var(--radius);
    transition: var(--transition);
}
.nav-link:hover,
.nav-link.active {
    color: var(--color-text);
    background: var(--color-bg-muted);
}
.nav-cta {
    background: var(--color-accent) !important;
    color: #fff !important;
}
.nav-cta:hover {
    background: var(--color-accent-hover) !important;
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: var(--transition);
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
    border: none;
}
.btn-primary {
    background: var(--color-accent);
    color: #fff;
}
.btn-primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.btn-secondary {
    background: var(--color-bg-muted);
    color: var(--color-text);
}
.btn-secondary:hover {
    background: var(--color-border);
}
.btn-outline {
    background: transparent;
    color: var(--color-accent);
    border: 1.5px solid var(--color-accent);
}
.btn-outline:hover {
    background: var(--color-accent);
    color: #fff;
}
.btn-large {
    padding: 16px 36px;
    font-size: 1.05rem;
}

/* ---- Hero ---- */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, var(--color-bg-soft) 0%, var(--color-bg) 100%);
}
.hero-content {
    max-width: 640px;
}
.hero-subtitle {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}
.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-primary);
    letter-spacing: -1px;
    margin-bottom: 24px;
}
.hero-text {
    font-size: 1.15rem;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 36px;
}
.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ---- Sections ---- */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}
.section-subtitle {
    font-size: 1.05rem;
    color: var(--color-text-light);
    margin-bottom: 48px;
}

/* ---- Services ---- */
.services {
    padding: 100px 0;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.service-card {
    padding: 36px 32px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    transition: var(--transition);
}
.service-card:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}
.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-soft);
    border-radius: 12px;
    color: var(--color-accent);
    margin-bottom: 20px;
}
.service-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-primary);
}
.service-card p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* ---- About Teaser ---- */
.about-teaser {
    padding: 100px 0;
    background: var(--color-bg-soft);
}
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 64px;
    align-items: center;
}
.about-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 20px;
}
.about-content p {
    color: var(--color-text-light);
    margin-bottom: 16px;
    line-height: 1.7;
}
.about-content .btn-outline {
    margin-top: 12px;
}
.about-stats {
    display: grid;
    gap: 24px;
}
.stat {
    padding: 28px 32px;
    background: var(--color-bg);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    text-align: center;
}
.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-accent);
}
.stat-label {
    font-size: 0.85rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ---- CTA ---- */
.cta {
    padding: 100px 0;
    text-align: center;
    background: var(--color-primary);
    color: #fff;
}
.cta h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
}
.cta p {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ---- Footer ---- */
.footer {
    padding: 64px 0 0;
    background: var(--color-bg-soft);
    border-top: 1px solid var(--color-border);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}
.footer-brand p {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--color-text-light);
}
.footer-links h4,
.footer-contact h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text);
    margin-bottom: 16px;
}
.footer-links li {
    margin-bottom: 8px;
}
.footer-links a {
    font-size: 0.9rem;
    color: var(--color-text-light);
    transition: var(--transition);
}
.footer-links a:hover {
    color: var(--color-accent);
}
.footer-contact p {
    font-size: 0.9rem;
    color: var(--color-text-light);
}
.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding: 20px 0;
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 0.85rem;
    color: var(--color-text-light);
}
.footer-bottom a {
    color: var(--color-text-light);
    transition: var(--transition);
}
.footer-bottom a:hover {
    color: var(--color-accent);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-menu {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--color-bg);
        flex-direction: column;
        padding: 16px 24px;
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-md);
    }
    .nav-menu.open { display: flex; }
    .nav-link { padding: 12px 16px; width: 100%; }

    .hero { padding: 120px 0 60px; }
    .hero-title { font-size: 2.2rem; }

    .services-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

/* ---- Page Styles (Unterseiten) ---- */
.page-header {
    padding: 140px 0 60px;
    background: var(--color-bg-soft);
}
.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
}
.page-header p {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-top: 12px;
}
.page-content {
    padding: 80px 0;
}
.page-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 16px;
    margin-top: 40px;
}
.page-content h2:first-child { margin-top: 0; }
.page-content p {
    color: var(--color-text-light);
    margin-bottom: 16px;
    line-height: 1.7;
}

/* ---- Contact Form ---- */
.contact-form {
    max-width: 560px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--color-text);
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font);
    font-size: 0.95rem;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-bg);
    color: var(--color-text);
    transition: var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}
.form-message {
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    margin-top: 16px;
    display: none;
}
.form-message.success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    display: block;
}
.form-message.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    display: block;
}
