/* ==========================================================================
   JPG-Lean Consulting – static site
   Faithful rebuild of the WordPress (Elementor + Inspiro) design.
   ========================================================================== */

:root {
    --color-primary: #101010;
    --color-secondary: #000000;
    --color-tertiary: #6c6c77;
    --color-lightgrey: #d9d9d9;
    --color-background: #f9fafd;
    --color-white: #ffffff;
    --color-navbar: #8496b0;
    --color-body-text: #333333;
    --color-impressum-link: #333300;

    --container-width: 1200px;
    --container-padding: 30px;

    --font-body: 'Inter', sans-serif;
    --font-heading: 'Onest', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-body-text);
    background: var(--color-background);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-primary);
    margin: 0 0 0.75em;
}

p { margin: 0 0 1.25em; }

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

a:hover { color: var(--color-tertiary); }

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

.screen-reader-text {
    position: absolute;
    width: 1px; height: 1px;
    clip: rect(0 0 0 0);
    overflow: hidden;
    white-space: nowrap;
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    background: var(--color-navbar);
    color: #fff;
    transition: background .5s ease-in-out;
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 26px 0;
    min-height: 107px;
}

.custom-logo {
    display: block;
    height: 60px;
    width: auto;
    transition: height .3s ease;
}

.site-header.scrolled .custom-logo { height: 55px; }
.site-header.scrolled .navbar-inner { padding: 14px 0; min-height: 86px; }

.primary-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 34px;
}

.primary-menu a {
    display: block;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 16px;
    line-height: 1.8;
    color: #fff;
    border-bottom: 1px solid transparent;
    padding: .3125em 0 .1875em;
    transition: border-color .2s ease, color .2s ease;
}

.primary-menu a:hover,
.primary-menu a.current { border-bottom-color: #fff; }

.navbar-toggle {
    display: none;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
}

.navbar-toggle .icon-bar {
    display: block;
    width: 26px;
    height: 3px;
    margin: 5px 0;
    background: #fff;
    border-radius: 2px;
    transition: transform .25s ease, opacity .25s ease;
}

/* Slide-in side navigation (mobile) */
.side-nav {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 300px;
    max-width: 85vw;
    background: #fff;
    z-index: 300;
    transform: translateX(100%);
    transition: transform .35s ease;
    box-shadow: 0 0 40px rgba(0,0,0,.2);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.side-nav.open { transform: translateX(0); }

.side-nav__close {
    align-self: flex-end;
    margin: 12px 16px 0 0;
    background: none;
    border: 0;
    cursor: pointer;
}

.side-nav__close .icon-bar {
    display: block;
    width: 26px;
    height: 3px;
    margin: 5px 0;
    background: var(--color-primary);
    border-radius: 2px;
}

.side-nav__close .icon-bar:first-child { transform: rotate(45deg) translate(4px, 4px); }
.side-nav__close .icon-bar:nth-child(2) { opacity: 0; }
.side-nav__close .icon-bar:last-child { transform: rotate(-45deg) translate(4px, -4px); }

.side-nav ul {
    list-style: none;
    margin: 0;
    padding: 10px 30px 30px;
}

.side-nav ul li { border-bottom: 1px solid var(--color-lightgrey); }

.side-nav ul a {
    display: block;
    font-family: var(--font-heading);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 16px;
    line-height: 1.8;
    padding: .75em 0;
    color: var(--color-primary);
}

.side-nav ul a:hover,
.side-nav ul a.current { color: var(--color-navbar); }

.side-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 290;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}

.side-nav-overlay.show { opacity: 1; visibility: visible; }

/* ==========================================================================
   Hero (Home)
   ========================================================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000 url('../img/hero-desktop.jpg') no-repeat center / cover;
    color: #fff;
    text-align: center;
    padding: 150px 30px 60px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(to bottom, rgba(0,0,0,.3) 0%, rgba(0,0,0,.5) 100%);
}

.hero-content { position: relative; z-index: 1; max-width: 900px; }

.hero h1 {
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(28px, 5.5vw, 62px);
    line-height: 1.25;
    letter-spacing: .02em;
    margin: 0;
    text-shadow: 0 2px 18px rgba(0,0,0,.35);
}

.hero-impressum {
    position: absolute;
    right: 30px;
    bottom: 28px;
    z-index: 1;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 18px;
    margin: 0;
}

.hero-impressum a { color: var(--color-impressum-link); }
.hero-impressum a:hover { text-decoration: underline; }

/* ==========================================================================
   Page content
   ========================================================================== */

.site-content {
    padding-top: 150px;
    padding-bottom: 80px;
}

.site-content--flush {
    padding-top: 0;
    padding-bottom: 0;
}

.page-title {
    font-size: clamp(26px, 4vw, 45px);
    font-weight: 600;
    text-align: left;
}

.entry-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
    font-size: 16px;
}

.entry-content h2 { font-size: 30px; }
.entry-content h3 { font-size: 24px; }
.entry-content h4 { font-size: 16px; }

.entry-content ul,
.entry-content ol {
    padding-left: 1.5em;
    margin: 0 0 1.5em;
}

.entry-content li { margin-bottom: .35em; }

.entry-content li > ul {
    margin-top: .5em;
    margin-bottom: .5em;
}

/* Two-column media + text (Über mich, Services) */
.media-text {
    display: grid;
    grid-template-columns: 42% auto;
    gap: 40px;
    align-items: center;
    margin: 40px 0;
}

.media-text.services { grid-template-columns: 33% auto; align-items: center; }

.media-text__media img {
    border-radius: 4px;
    width: 100%;
    height: auto;
}

.media-text__media figure { margin: 0; }

.media-text__content ul { margin-top: .25em; }

.centered-lead {
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #333333;
}

.centered-lead h3 {
    font-size: clamp(20px, 2.6vw, 24px);
    line-height: 1.5;
}

.section-label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 18px;
    color: var(--color-primary);
    margin: 1.75em 0 .5em;
}

.partners { list-style: none; padding-left: 0; }

.partners li {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: .75em;
}

.partners a { color: #808080; }
.partners a:hover { color: var(--color-primary); }

.partners img { width: 90px; height: auto; }

/* Testimonial (News) */
.testimonial-block {
    max-width: 860px;
    margin: 30px auto;
}

.testimonial-quote {
    border-left: 4px solid var(--color-navbar);
    margin: 0;
    padding: 10px 30px 20px;
    font-size: 17px;
    line-height: 1.9;
    color: var(--color-body-text);
}

.testimonial-quote img {
    float: left;
    border-radius: 50%;
    width: 150px;
    height: 150px;
    margin: 8px 24px 12px 0;
}

.testimonial-quote p { margin-bottom: 0; }

.testimonial-quote cite {
    display: block;
    margin-top: 18px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-style: normal;
    font-size: 16px;
}

/* Contact */
.contact-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
    margin: 40px 0;
}

.contact-info p { color: #333333; }
.contact-info strong { font-weight: 600; }
.contact-info a { color: #333333; }
.contact-info a:hover { color: var(--color-navbar); }

.contact-map iframe {
    width: 100%;
    height: 450px;
    border: 0;
    border-radius: 4px;
}

/* ==========================================================================
   Legal pages
   ========================================================================== */

.legal h2 {
    font-size: 24px;
    margin-top: 1.75em;
}

.legal .privacy-policy-tutorial { font-weight: 600; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: var(--color-primary);
    color: #fff;
    padding: 40px 0;
}

.site-footer .inner {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
}

.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--color-lightgrey); }

.site-footer .copyright { font-size: 14px; color: #ccc; }

.site-footer .footer-links {
    display: flex;
    gap: 26px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 15px;
}

/* ==========================================================================
   Back to top
   ========================================================================== */

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 150;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111111;
    color: #fff;
    border-radius: 50%;
    border: 0;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
    box-shadow: 0 4px 14px rgba(0,0,0,.25);
}

.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

.back-to-top:hover { background: #000; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
    .primary-menu { display: none; }
    .navbar-toggle { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; }
    .media-text,
    .media-text.services { grid-template-columns: 1fr; }
    .media-text__media img { max-width: 100%; }
    .contact-columns { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
    .hero {
        background-image: url('../img/hero-mobile.jpg');
    }
    .hero h1 { font-size: clamp(26px, 9vw, 40px); }
    .testimonial-quote img {
        float: none;
        display: block;
        margin: 0 auto 16px;
        width: 120px;
        height: 120px;
    }
    .testimonial-quote { text-align: center; }
    .testimonial-quote cite { text-align: center; }
    .site-footer .inner { flex-direction: column; text-align: center; }
}
