/* Grunddesign */
:root {
    --bg-main: #ffffff;              /* heller Hintergrund */
    --bg-section: #f8fafc;           /* leicht abgesetztes Hellgrau */
    --bg-dark: #0f172a;              /* dunkler Hintergrund für Kontrast-Sektionen */
    --accent: #f59e0b;               /* Orange aus dem Logo */
    --accent-hover: #fbbf24;
    --accent-soft: #2563eb;          /* Blau für Highlights */
    --text-main: #1e293b;            /* dunkler Text auf hellem Grund */
    --text-muted: #64748b;
    --text-light: #e5e7eb;           /* heller Text auf dunklem Grund */
    --card-bg: #ffffff;
    --card-border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
    --radius: 16px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', 'Montserrat', sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
}

main {
    padding-top: 80px; /* Platz für die fixe Navbar */
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

section p {
    color: var(--text-muted);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------------- NAVIGATION ---------------- */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 40px;
    background: rgba(15, 23, 42, 0.97);
    backdrop-filter: blur(14px);
    box-shadow: 0 1px 10px rgba(0,0,0,0.15);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo span {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.5px;
}

/* Nav-Links */
.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    position: relative;
    font-size: 0.95rem;
}

/* Underline-Effekt */
.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.25s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* CTA in der Navbar */
.nav-cta {
    padding: 10px 22px;
    border-radius: 999px;
    background: var(--accent);
    color: #0b1120;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.nav-cta:hover {
    background: var(--accent-hover);
    box-shadow: 0 5px 20px rgba(245, 158, 11, 0.35);
    transform: translateY(-1px);
}

/* Burger Icon (Mobile) */
.burger {
    display: none;
    width: 32px;
    height: 24px;
    padding: 0;
    border: none;
    background: transparent;
    position: relative;
    cursor: pointer;
}

.burger span {
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 999px;
    background: white;
    transform-origin: center;
    transition: transform 0.25s ease, opacity 0.25s ease, top 0.25s ease, bottom 0.25s ease;
}

.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.burger span:nth-child(3) { bottom: 0; }

/* Overlay hinter dem mobilen Menü */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 15;
}

/* ---------- Mobile Styles ---------- */
@media (max-width: 900px) {
    .nav-links,
    .nav-cta {
        display: none;
    }

    .burger {
        display: block;
    }

    body.nav-open .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        padding: 90px 28px 28px;
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        background: rgba(15, 23, 42, 0.98);
        box-shadow: -10px 0 30px rgba(0,0,0,0.3);
        z-index: 18;
    }

    body.nav-open .nav-cta {
        display: inline-block;
        margin-top: 16px;
    }

    body.nav-open .nav-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    /* Burger animiert zu "X" */
    body.nav-open .burger span:nth-child(1) {
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
    }

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

    body.nav-open .burger span:nth-child(3) {
        bottom: 50%;
        transform: translateY(50%) rotate(-45deg);
    }

    .navbar {
        padding: 12px 20px;
    }
}

/* ---------------- HERO ---------------- */

.hero {
    min-height: 70vh;
    width: 100%;
    background: 
        linear-gradient(135deg, rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.5)),
        url("img/Hero1.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 60px 24px;
}

.hero-content {
    max-width: 750px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 16px;
    font-weight: 600;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.15;
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 540px;
    margin: 0 auto;
    color: rgba(255,255,255,0.85);
}

.hero-cta {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 999px;
    background: var(--accent);
    color: #0f172a;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.cta-btn:hover {
    background: var(--accent-hover);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
    transform: translateY(-2px);
}

.ghost-btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 999px;
    border: 2px solid rgba(255,255,255,0.4);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.ghost-btn:hover {
    background-color: rgba(255,255,255,0.12);
    border-color: #ffffff;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* ---------------- LEISTUNGEN ---------------- */

.services {
    padding: 90px 40px;
    text-align: center;
    background: var(--bg-main);
}

.services h2 {
    color: var(--text-main);
}

.service-boxes {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.box {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    width: 300px;
    padding: 36px 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
}

.box:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.box i {
    font-size: 38px;
    margin-bottom: 18px;
    color: var(--accent);
}

.box h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.box p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ---------------- PORTFOLIO ---------------- */

.portfolio {
    text-align: center;
    padding: 90px 40px;
    background: var(--bg-section);
}

.portfolio h2 {
    color: var(--text-main);
}

.portfolio-grid {
    margin-top: 48px;
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
}

.portfolio-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.portfolio-item {
    width: 320px;
    height: 380px;
    background: radial-gradient(circle at top, #e2e8f0, #cbd5e1);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    display: block;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 24px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: white;
    opacity: 0;
    transition: 0.3s;
}

.overlay h3 {
    color: white;
}

.overlay p {
    color: rgba(255,255,255,0.8);
}

.portfolio-item:hover .overlay {
    opacity: 1;
}

/* ---------------- ABOUT ---------------- */

.about {
    padding: 90px 40px;
    background: var(--bg-dark);
    text-align: center;
    color: var(--text-light);
}

.about h2 {
    color: white;
}

.about p {
    color: rgba(255,255,255,0.75);
    max-width: 680px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* ---------------- KONTAKT ---------------- */

.contact {
    padding: 90px 40px;
    text-align: center;
    background: var(--bg-main);
    color: var(--text-main);
}

.contact h2 {
    color: var(--text-main);
}

.contact-subtitle {
    color: var(--text-muted);
    margin-bottom: 36px;
    font-size: 1.05rem;
}

.contact form {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
}

.contact label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: -8px;
}

.contact input,
.contact textarea {
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    background: var(--bg-section);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.contact input:focus,
.contact textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.contact textarea {
    min-height: 140px;
    resize: vertical;
}

.contact button {
    padding: 14px;
    border-radius: 999px;
    background: var(--accent);
    color: #0f172a;
    cursor: pointer;
    border: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.contact button:hover {
    background: var(--accent-hover);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
    transform: translateY(-2px);
}

.contact-info {
    margin-top: 32px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.contact-info a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* ---------------- FOOTER ---------------- */

.footer {
    padding: 28px 20px;
    text-align: center;
    background: var(--bg-dark);
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
}

/* ---------------- FADE-IN ---------------- */

.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------------- RESPONSIVE FEINTUNING ---------------- */

@media (max-width: 600px) {
    .hero {
        min-height: 60vh;
        padding: 48px 20px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .services,
    .portfolio,
    .about,
    .contact {
        padding: 60px 20px;
    }

    .box {
        width: 100%;
        max-width: 360px;
    }

    .portfolio-item {
        width: 100%;
        max-width: 360px;
        height: 280px;
    }
}
