/* STABIL DIGITAL - style.css
   Keine Frameworks. Nur sauberes, wartbares CSS.
   (No frameworks. Just clean, maintainable CSS.)
*/

/* === 1. GRUNDEINSTELLUNGEN & VARIABLEN (Setup & Variables) === */

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Poppins:wght@500;700&display=swap');

:root {
    /* Farbpalette (Color Palette) */
    --color-primary: #003366;
    /* Mittelstand-Blau (Trustworthy Blue) */
    --color-accent: #FF6600;
    /* Dynamisches Orange (Dynamic Orange) */
    --color-text-dark: #222222;
    /* Dunkler Text (Dark Text) */
    --color-text-light: #555555;
    /* Hellerer Text (Lighter Text) */
    --color-bg-light: #F9F9F9;
    /* Heller Hintergrund (Light BG) */
    --color-bg-white: #FFFFFF;
    --color-border: #E0E0E0;

    /* Typografie (Typography) */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Lato', sans-serif;

    /* Layout */
    --container-width: 1140px;
    --header-height: 80px;
    --border-radius: 5px;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--color-text-light);
    background-color: var(--color-bg-white);
}

/* === 2. HELFERKLASSEN (Utility Classes) === */

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

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--color-text-dark);
    line-height: 1.3;
    margin-bottom: 1.25rem;
    font-weight: 700;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.25rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.btn {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 500;
    padding: 0.8rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background-color: #e65c00;
    color: var(--color-bg-white);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-bg-white);
    text-decoration: none;
}

section {
    padding: 5rem 0;
}

.section-bg {
    background-color: var(--color-bg-light);
}

/* === 3. HEADER & NAVIGATION === */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

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

.nav-logo a {
    display: flex;
    align-items: center;
}

.nav-logo img {
    height: 40px;
    /* Logo height */
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-item {
    margin-left: 1.5rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--color-text-dark);
    font-size: 1rem;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-accent);
    text-decoration: none;
}

.nav-lang {
    font-size: 0.9rem;
    font-weight: 700;
    margin-left: 1.5rem;
}

.nav-lang a {
    color: var(--color-text-light);
    padding: 0.25rem;
}

.nav-lang a:hover {
    color: var(--color-accent);
    text-decoration: none;
}

.nav-lang strong {
    color: var(--color-text-dark);
    padding: 0.25rem;
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger {
    width: 25px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* === 4. HERO SECTION === */

.hero {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 4rem;
    background-color: var(--color-bg-white);
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    align-items: center;
    gap: 3rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero-content h1 span {
    color: var(--color-primary);
    /* This is a "creative" highlight */
    background: linear-gradient(to top, rgba(255, 102, 0, 0.2) 30%, transparent 30%);
}

.hero-subheadline {
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

.hero-image {
    /* Placeholder for a professional, abstract graphic */
    width: 100%;
    height: 350px;
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, var(--color-primary), #0055a4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    text-align: center;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0, 51, 102, 0.2);
}

/* === 5. USP / VALUE PROPS === */

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

.usp-card {
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 2rem;
    background: var(--color-bg-white);
    transition: all 0.3s ease;
}

.usp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.usp-card-icon {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.usp-card h3 {
    margin-bottom: 0.5rem;
}

/* === 6. CALL-TO-ACTION (CTA) SECTION === */

.cta {
    background-color: var(--color-primary);
    color: var(--color-bg-white);
    text-align: center;
    padding: 4rem 0;
}

.cta h2 {
    color: var(--color-bg-white);
}

.cta p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.cta .btn-primary {
    background-color: var(--color-accent);
}

.cta .btn-primary:hover {
    background-color: var(--color-bg-white);
    color: var(--color-accent);
}

/* === 7. SERVICES (Leistungen) === */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.service-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
}

.service-card-image {
    height: 200px;
    background: var(--color-primary);
    /* Placeholder for image */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-family: var(--font-heading);
}

.service-card-content {
    padding: 1.5rem;
}

.service-card-content h3 {
    margin-bottom: 0.5rem;
}

.service-card-content a {
    font-weight: 700;
    font-family: var(--font-heading);
}

/* === 8. KONTAKT (Contact Form) === */

.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--color-text-dark);
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    font-family: var(--font-body);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* === 9. FOOTER === */

.footer {
    background-color: var(--color-text-dark);
    color: rgba(255, 255, 255, 0.7);
    padding-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding-bottom: 3rem;
}

.footer-col h4 {
    color: var(--color-bg-white);
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
}

.footer-col p {
    margin-bottom: 0.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-bg-white);
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
}

/* === 10. RESPONSIVE DESIGN === */

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image {
        grid-row: 1;
        /* Move image to top on mobile */
        height: 250px;
        margin-bottom: 2rem;
    }

    .hero-content h1 {
        font-size: 2.75rem;
    }

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

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .nav-menu {
        display: none;
        /* Hide menu by default */
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--color-bg-white);
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
        overflow-y: auto;
    }

    .nav-menu.active {
        display: flex;
        /* Show menu when active */
    }

    .nav-item {
        margin: 0;
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 1rem 0.5rem;
        font-size: 1.25rem;
        border-bottom: 1px solid var(--color-border);
    }

    .nav-lang {
        margin: 1rem 0 0 0.5rem;
    }

    .nav-toggle {
        display: flex;
        /* Show hamburger */
    }

    /* Hamburger 'X' animation */
    .nav-open .hamburger span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

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

    .nav-open .hamburger span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .header {
        background-color: rgba(255, 255, 255, 1);
        /* Solid on mobile */
    }
}