:root{
    --primary: #1471c9;
    --primary-hover: #1688f2;
    --dark: #1E293B;
    --dark-light: #334155;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    color: #222;
    line-height: 1.6;
    background: #fff;
}
.container {
    max-width: 1280px;
    margin: auto;
    padding: 0 30px;
}
a {
    text-decoration: none;
    color: inherit;
}

/* HEADER */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 999;
    box-shadow: 0 2px 15px rgba(0, 0, 0, .08);
}
.navbar {
    height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1rem;
    margin-right: 20px;
}
.logo img {
    height: clamp(25px, 4vw, 55px);
    width: auto;
    object-fit: contain;
    vertical-align: middle;
}
.menu {
    display: flex;
    gap: 35px;
    list-style: none;
    font-weight: 600;
}
.menu a:hover { 
    color: var(--primary); 
}
.menu-center {
    text-align: center;
    display: block;
}
.nav-button {
    background: var(--primary);
    color: white;
    padding: 14px 24px;
    border-radius: 6px;
    font-weight: 600;
    transition: .3s;
    margin-left: 20px;
}
.nav-button:hover{ 
    background: var(--primary-hover); 
}

/* HERO */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background:
        linear-gradient(
            rgba(20,115,200,.75),
            rgba(30,41,59,.85)
        ),
        url('../images/hero.jpg');
    background-size: cover;
    background-position: center;
    color: white;
}
.hero-content { 
    max-width: 700px;
    padding-top: 20px;
}
.hero h1 {
    font-size: 72px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
}
.hero h1 span { 
    color: var(--primary-hover); 
}
.hero p {
    font-size: 22px;
    margin-bottom: 40px;
    max-width: 650px;
}
.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.btn {
    padding: 16px 30px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    border-radius: 6px;
}
.btn-primary {
    background: var(--primary);
    color: white;
    transition: .3s;
}
.btn-primary:hover{
    background: var(--primary-hover);
}

/* USP */
.usp {
    padding: 90px 0;
    background: #fff;
}
.usp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}
.usp-card {
    padding: 35px;
    background: white;
    border: 1px solid #eee;
    border-radius: 12px;
    text-align: center;
    transition: .3s;
}
.usp-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

/* SECTION TITLE */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}
.section-title h2 {
    font-size: 48px;
    margin-bottom: 15px;
}
.section-title p { 
    color: #666; 
}

/* SERVICES */
.services {
    padding: 100px 0;
    background: #f8f8f8;
}
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.service-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .05);
    transition: .3s;
}
.usp-card:hover {
    transform: translateY(-8px);
}
.service-card:hover { transform: translateY(-8px); }
.service-image {
    height: 220px;
    background: #ddd;
    overflow: hidden;
}
.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.service-content { padding: 30px; }
.service-content h3 {
    margin-bottom: 10px;
    font-size: 24px;
}

/* ABOUT */
.about {
    padding: 100px 0;
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-image img {
    width: 100%;
    border-radius: 15px;
}
.about h2 {
    font-size: 48px;
    margin-bottom: 20px;
}
.about ul {
    margin-top: 25px;
    padding-left: 20px;
}
.about li {
    margin-bottom: 10px;
}
.about h4 {
    margin-top: 30px;
    margin-bottom: 10px;
    font-size: 16px;
}
.about-grid p:last-of-type { margin-top: 30px; }

/* REFERENCES */
.references {
    padding: 100px 0;
    background: var(--dark);
    color: white;
}
.reference-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}
.reference {
    height: 280px;
    overflow: hidden;
    border-radius: 15px;
    transition: transform .3s ease;
}
.reference:hover { 
    transform: translateY(-8px); 
}
.reference img {
    width: 100%;
    height: 100%;
}

/* CTA */
.cta {
    padding: 100px 20px;
    background: linear-gradient(
        135deg,
        var(--dark),
        var(--primary)
    );
    text-align: center;
    color: white;
}
.cta h2 {
    font-size: 52px;
    margin-bottom: 20px;
}
.cta p {
    font-size: 20px;
    margin-bottom: 35px;
}

/* CONTACT */
.contact { padding: 100px 0 }
.contact-box {
    background: #f7f7f7;
    padding: 60px;
    border-radius: 15px;
    text-align: center;
}
.contact-box h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

/* FOOTER */
.footer {
    background: var(--dark);
    color: #aaa;
    padding: 40px 20px;
}
.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}
.footer p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* Divider */
.footer-divider {
    width: 120px;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 1px;
}

/* SOCIAL ICONS */
.social-icons {
    display: flex;
    gap: 15px;
}
.social-icons a {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    font-size: 18px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.social-icons a:hover {
    transform: translateY(-4px);
    background: var(--primary);
    box-shadow: 0 10px 25px rgba(20, 113, 201, 0.35);
}
.social-icons a::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: scale(0);
    opacity: 0;
    transition: all 0.4s ease;
}
.social-icons a:hover::after {
    transform: scale(1.8);
    opacity: 0;
}

/* BACK TO TOP */
#backToTop {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 55px;
    height: 55px;
    border: none;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,.25);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all .3s ease;
}
#backToTop:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
}
#backToTop.show {
    opacity: 1;
    visibility: visible;
}

/* IMPRESSUM */
.contact-box hr {
    margin: 30px 0;
    border: 0;
    border-top: 1px solid #ccc;
}

/* MOBILE */
@media (max-width: 1000px) {
    .hero h1 { 
        font-size: 48px; 
    }
    .hero p { 
        font-size: 18px; 
    }
    .usp-grid { 
         grid-template-columns: repeat(2, 1fr); 
    }
    .service-grid,
    .reference-grid,
    .about-grid {
        grid-template-columns: 1fr;
    }
    .nav-button {
    width: 100%;
    max-width: 260px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    }
}

@media (max-width: 768px) {
    header { padding: 10px 0; }
    .navbar {
        height: auto;
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }
    .logo img {
        height: 55px !important;
        max-width: 330px;
        width: auto;
    }
    .menu {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px;
        width: 100%;
    }
    .menu li a { 
        font-size: 14px; 
    }
    .nav-button {
        width: 100%;
        max-width: 260px;
        text-align: center;
        padding: 12px 18px;
    }
    .hero { 
        padding-top: 240px; 
    }
}

@media (max-width: 600px) {
    .usp-grid { 
        grid-template-columns: 1fr; 
    }
    .hero {
        height: auto;
        padding: 180px 0 120px;
    }
    .hero h1 { 
        font-size: 38px; 
    }
    .container { 
        padding: 0 15px; 
    }
    .social-icons a {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
    .footer-divider { 
        width: 90px; 
    }
}