/* ===============================
   HOLZBAU JUNG - Design System
   Style: Nature Distilled + Light Warmth
   Typography: Bebas Neue + Source Sans 3
================================ */

/* Self-hosted fonts (DSGVO-konform) */
@font-face {
    font-family: 'Bebas Neue';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(fonts/bebas-neue-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Bebas Neue';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(fonts/bebas-neue-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url(fonts/source-sans-3-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url(fonts/source-sans-3-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    /* Warm Natural Palette */
    --bg-dark: #EDE8DF;
    --bg-card: #F5F1EB;
    --bg-card-hover: #E8E2D8;
    --bg-elevated: #E3DDD3;
    --bg-warm: #E0D9CE;

    /* Accent Colors */
    --amber: #B07830;
    --amber-light: #C6893A;
    --amber-glow: rgba(176, 120, 48, 0.1);
    --terracotta: #C67B5C;
    --sand: #D4C4A8;

    /* Text */
    --text-primary: #2C2418;
    --text-secondary: #5C5040;
    --text-muted: #8A7D6B;
    --text-dark: #FFFFFF;

    /* Borders */
    --border: rgba(44, 36, 24, 0.08);
    --border-hover: rgba(44, 36, 24, 0.15);

    /* System */
    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'Source Sans 3', system-ui, sans-serif;
    --container-max: 1200px;
    --header-height: 80px;
    --radius: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --shadow: 0 4px 24px rgba(44, 36, 24, 0.08);
    --shadow-lg: 0 12px 40px rgba(44, 36, 24, 0.12);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===============================
   RESET & BASE
================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

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

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

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

/* ===============================
   HEADER
================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    background: rgba(20, 18, 16, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: background var(--transition), border-color var(--transition);
}

.header.scrolled {
    background: rgba(237, 232, 223, 0.97);
    border-bottom-color: var(--border-hover);
}

.header.scrolled .logo-text,
.header.scrolled .nav-links a {
    color: var(--text-primary);
}

.header.scrolled .nav-links a:hover {
    color: var(--amber);
}

.header-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    cursor: pointer;
}

.logo img {
    height: 44px;
    width: auto;
    border-radius: 8px;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #F5F0E1;
    transition: color var(--transition);
}

.logo-text span {
    color: var(--amber);
}

nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-links a {
    position: relative;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(245, 240, 225, 0.8);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    transition: color var(--transition), background var(--transition);
    cursor: pointer;
}

.nav-links a:hover {
    color: #F5F0E1;
    background: rgba(245, 240, 225, 0.1);
}

.nav-cta {
    background: var(--amber) !important;
    color: var(--text-dark) !important;
    font-weight: 600 !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: var(--radius) !important;
}

.nav-cta:hover {
    background: var(--amber-light) !important;
    color: var(--text-dark) !important;
}

.mobile-menu-btn {
    display: none;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #F5F0E1;
    padding: 0.5rem;
    transition: color var(--transition);
}

.header.scrolled .mobile-menu-btn {
    color: var(--text-primary);
}

/* ===============================
   BUTTONS
================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    line-height: 1.4;
}

.btn-primary {
    background: var(--amber);
    color: var(--text-dark);
}

.btn-primary:hover {
    background: var(--amber-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(176, 120, 48, 0.2);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid rgba(44, 36, 24, 0.25);
}

.btn-outline:hover {
    border-color: var(--amber);
    background: rgba(176, 120, 48, 0.06);
}

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1.1rem;
}

/* ===============================
   HERO SECTION
================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-image: url("images/holzmeister_ohnegesicht.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(20, 18, 16, 0.7) 0%,
        rgba(26, 23, 20, 0.45) 40%,
        rgba(42, 38, 32, 0.25) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 700px;
    padding-top: var(--header-height);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(198, 137, 58, 0.15);
    border: 1px solid rgba(198, 137, 58, 0.3);
    color: #D4A054;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--amber);
    border-radius: 50%;
    flex-shrink: 0;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 7vw, 6rem);
    font-weight: 400;
    color: #F5F0E1;
    line-height: 1.0;
    margin-bottom: 1.5rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero h1 em {
    font-style: normal;
    color: #D4A054;
}

.hero p {
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    color: #C8BFAF;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero .btn-outline {
    color: #F5F0E1;
    border-color: rgba(245, 240, 225, 0.3);
}

.hero .btn-outline:hover {
    border-color: #F5F0E1;
    background: rgba(245, 240, 225, 0.08);
}

/* ===============================
   TRUST BAR
================================ */
.trust-bar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
}

.trust-bar-inner {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
}

.trust-item svg {
    color: var(--amber);
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

/* ===============================
   SECTIONS
================================ */
.section {
    padding: 6rem 0;
}

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

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

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

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.section-label {
    display: inline-block;
    color: var(--amber);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.75rem;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 4vw, 3.5rem);
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.05;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ===============================
   SERVICES GRID
================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.service-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all var(--transition);
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(176, 120, 48, 0.25);
    box-shadow: 0 12px 32px rgba(44, 36, 24, 0.1);
    background: var(--bg-card-hover);
}

.service-icon {
    width: 3rem;
    height: 3rem;
    background: var(--amber-glow);
    border: 1px solid rgba(176, 120, 48, 0.15);
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--amber);
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ===============================
   ABOUT SECTION
================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--radius-xl);
    width: 100%;
    object-fit: cover;
    object-position: top;
    aspect-ratio: 3/4;
    box-shadow: var(--shadow-lg);
}

.about-image::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(176, 120, 48, 0.1);
    pointer-events: none;
}

.about-content .section-label {
    display: block;
}

.about-content h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.05;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.75;
    font-size: 0.95rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stat {
    text-align: center;
}

.stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--amber);
    margin-bottom: 0.25rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.stat span {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

/* ===============================
   CTA SECTION
================================ */
.cta-section {
    position: relative;
    padding: 5rem 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.cta-section::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(176, 120, 48, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cta-content p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* ===============================
   CONTACT SECTION
================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.contact-info > p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-icon {
    width: 2.75rem;
    height: 2.75rem;
    background: var(--amber-glow);
    border: 1px solid rgba(176, 120, 48, 0.15);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--amber);
}

.contact-item strong {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.contact-item p,
.contact-item a {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.9rem;
}

.contact-item a:hover {
    color: var(--amber);
}

/* ===============================
   FOOTER
================================ */
.footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
    padding-top: 3.5rem;
    color: var(--text-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 1.2rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-logo img {
    border-radius: 6px;
}

.footer-col p {
    font-size: 0.875rem;
    line-height: 1.65;
}

.footer-col h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-col a {
    display: block;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    cursor: pointer;
}

.footer-col a:hover {
    color: var(--amber);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 1.25rem 0;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===============================
   ANIMATIONS
================================ */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

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

.services-grid .fade-in:nth-child(2) { transition-delay: 0.08s; }
.services-grid .fade-in:nth-child(3) { transition-delay: 0.16s; }
.services-grid .fade-in:nth-child(4) { transition-delay: 0.24s; }
.services-grid .fade-in:nth-child(5) { transition-delay: 0.32s; }
.services-grid .fade-in:nth-child(6) { transition-delay: 0.4s; }

.trust-bar-inner .fade-in:nth-child(2) { transition-delay: 0.08s; }
.trust-bar-inner .fade-in:nth-child(3) { transition-delay: 0.16s; }
.trust-bar-inner .fade-in:nth-child(4) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
    .fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .about-grid {
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 68px;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: var(--header-height);
        right: 0;
        left: 0;
        flex-direction: column;
        align-items: stretch;
        background: rgba(237, 232, 223, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 1rem 1.5rem;
        border-bottom: 1px solid var(--border);
        gap: 0;
        opacity: 0;
        transform: translateY(-10px);
        pointer-events: none;
        transition: opacity 0.25s ease, transform 0.25s ease;
    }

    .nav-links.open {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-links a {
        display: block;
        padding: 0.875rem 0;
        border-bottom: 1px solid var(--border);
        border-radius: 0;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .nav-cta {
        text-align: center;
        margin-top: 0.5rem;
        padding: 0.75rem !important;
        border-radius: var(--radius) !important;
    }

    .hero {
        min-height: 100vh;
    }

    .hero h1 {
        font-size: clamp(2.75rem, 10vw, 4rem);
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        text-align: center;
    }

    .section {
        padding: 4rem 0;
    }

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

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-image img {
        aspect-ratio: 4/3;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .trust-bar-inner {
        gap: 1.5rem;
    }

}

@media (max-width: 480px) {
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .trust-bar-inner {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .hero-badge {
        font-size: 0.7rem;
    }
}
