/* ============================================================
   BRAUN GARTENBAU — BAU  (bau.braun-gartenbau.de)
   main.css — tokens, base, components, nav, footer
   Stil: helles, warmes Editorial / architectural calm
   ============================================================ */

/* ---------- DESIGN TOKENS ---------- */
:root {
    --paper:       #F4F0E8;
    --paper-2:     #ECE7DB;
    --paper-3:     #E3DBC9;

    --ink:         #1E1B16;
    --ink-2:       #322E26;

    --text:        #544E44;
    --muted:       #8C8475;

    --accent:      #A56A43;
    --accent-deep: #8A5635;

    --line:        rgba(30, 27, 22, .14);
    --line-soft:   rgba(30, 27, 22, .07);
    --line-dark:   rgba(244, 240, 232, .16);

    --shadow:      0 32px 64px -30px rgba(45, 33, 20, .32);
    --shadow-sm:   0 14px 30px -18px rgba(45, 33, 20, .30);

    --radius:      3px;
    --radius-img:  6px;

    --maxw:        1320px;
    --pad:         clamp(1.25rem, 5vw, 3rem);
    --sec:         clamp(5.5rem, 12vw, 10rem);

    --ease:        cubic-bezier(.22, 1, .36, 1);
    --font-d:      'Fraunces', Georgia, 'Times New Roman', serif;
    --font-b:      'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-b);
    background: var(--paper);
    color: var(--text);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.72;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-optical-sizing: auto;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font-family: inherit; }

::selection { background: var(--accent); color: var(--paper); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- LAYOUT ---------- */
.container {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: var(--pad);
}
.section { padding-block: var(--sec); position: relative; }
.section--tight { padding-block: clamp(3.5rem, 8vw, 6.5rem); }

/* dark editorial section */
.section--dark {
    background: var(--ink);
    color: rgba(244, 240, 232, .72);
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--paper); }

.skip-link {
    position: absolute;
    left: 1rem; top: -120px;
    z-index: 2000;
    background: var(--ink);
    color: var(--paper);
    padding: .8rem 1.4rem;
    transition: top .3s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 {
    font-family: var(--font-d);
    font-weight: 480;
    line-height: 1.07;
    letter-spacing: -.015em;
    color: var(--ink);
}

.marker {
    display: inline-flex;
    align-items: center;
    gap: .85rem;
    font-family: var(--font-b);
    font-size: .73rem;
    font-weight: 500;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--accent);
}
.marker::before {
    content: "";
    width: 36px; height: 1px;
    background: currentColor;
    opacity: .6;
}
.section--dark .marker { color: var(--accent); }

.section-head { max-width: 760px; margin-bottom: clamp(2.6rem, 5vw, 4.2rem); }
.section-head .marker { margin-bottom: 1.6rem; }
.section-head h2 { font-size: clamp(2.2rem, 5.4vw, 4rem); }
.section-head p {
    margin-top: 1.4rem;
    font-size: 1.06rem;
    color: var(--muted);
    max-width: 54ch;
}
.section--dark .section-head p { color: rgba(244, 240, 232, .6); }

.lead {
    font-family: var(--font-d);
    font-weight: 400;
    font-size: clamp(1.3rem, 2.4vw, 1.9rem);
    line-height: 1.4;
    color: var(--ink);
    letter-spacing: -.01em;
}
.section--dark .lead { color: var(--paper); }

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .7rem;
    font-family: var(--font-b);
    font-size: .77rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: 1.15rem 2.1rem;
    border-radius: var(--radius);
    transition: background .35s var(--ease), color .35s var(--ease),
                border-color .35s var(--ease), transform .35s var(--ease);
}
.btn svg { width: 16px; height: 16px; }

.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--accent); transform: translateY(-2px); }

.btn--ghost { border: 1px solid var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: var(--accent); color: var(--paper); transform: translateY(-2px); }

.btn--lg { padding: 1.3rem 2.6rem; }

/* editorial text link with arrow */
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-family: var(--font-b);
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink);
    padding-bottom: .35rem;
    border-bottom: 1px solid var(--line);
    transition: border-color .35s var(--ease), color .35s var(--ease);
}
.section--dark .link-arrow { color: var(--paper); border-color: var(--line-dark); }
.link-arrow svg { width: 15px; height: 15px; transition: transform .35s var(--ease); }
.link-arrow:hover { border-color: var(--accent); color: var(--accent); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- REVEAL ---------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    [data-reveal] { opacity: 1 !important; transform: none !important; transition: none; }
}

/* ---------- NAVBAR ---------- */
.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    transition: background .45s var(--ease), border-color .45s var(--ease);
    border-bottom: 1px solid transparent;
}
.nav__inner {
    max-width: var(--maxw);
    margin-inline: auto;
    padding: 1.6rem var(--pad);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    transition: padding .45s var(--ease);
}
.nav.scrolled {
    background: rgba(244, 240, 232, .9);
    backdrop-filter: blur(14px) saturate(1.3);
    -webkit-backdrop-filter: blur(14px) saturate(1.3);
    border-bottom-color: var(--line);
}
.nav.scrolled .nav__inner { padding-block: 1.05rem; }

.nav__logo {
    font-family: var(--font-d);
    font-weight: 500;
    font-size: 1.4rem;
    color: var(--ink);
    letter-spacing: -.01em;
    line-height: 1;
    white-space: nowrap;
}
.nav__logo small {
    display: block;
    font-family: var(--font-b);
    font-weight: 500;
    font-size: .58rem;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--accent);
    margin-top: .32rem;
}

.nav__links { display: flex; align-items: center; gap: 2.4rem; }
.nav__links a {
    font-size: .82rem;
    font-weight: 500;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--ink);
    position: relative;
    padding-block: .3rem;
}
.nav__links a::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 1px;
    background: var(--accent);
    transition: width .35s var(--ease);
}
.nav__links a:hover::after { width: 100%; }

.nav__cta { display: flex; align-items: center; gap: 1rem; }
.nav__cta .btn { padding: .9rem 1.6rem; }

.nav__burger {
    display: none;
    width: 44px; height: 44px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.nav__burger span {
    width: 19px; height: 1.5px;
    background: var(--ink);
    transition: transform .35s var(--ease), opacity .25s;
}
.nav.open .nav__burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav.open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.open .nav__burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- FOOTER ---------- */
.footer {
    background: var(--ink);
    color: rgba(244, 240, 232, .6);
    padding-block: clamp(4rem, 8vw, 6rem) 2.5rem;
}
.footer__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3.5rem;
    border-bottom: 1px solid var(--line-dark);
}
.footer__logo {
    font-family: var(--font-d);
    font-weight: 500;
    font-size: 1.7rem;
    color: var(--paper);
    margin-bottom: 1.3rem;
}
.footer__brand p { max-width: 34ch; font-size: .95rem; }
.footer__col h4 {
    font-family: var(--font-b);
    font-size: .73rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.4rem;
}
.footer__col a, .footer__col p {
    display: block;
    font-size: .95rem;
    margin-bottom: .75rem;
    transition: color .3s;
}
.footer__col a:hover { color: var(--paper); }
.footer__bottom {
    margin-top: 2.2rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: .82rem;
    color: rgba(244, 240, 232, .42);
}

/* ---------- COOKIE ---------- */
.cookie {
    position: fixed;
    left: var(--pad); right: var(--pad); bottom: var(--pad);
    z-index: 1200;
    max-width: 520px;
    margin-inline: auto;
    padding: 1.6rem;
    background: var(--ink);
    color: rgba(244, 240, 232, .72);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transform: translateY(180%);
    transition: transform .6s var(--ease);
}
.cookie.show { transform: none; }
.cookie p { font-size: .88rem; margin-bottom: 1.1rem; }
.cookie p a { color: var(--accent); text-decoration: underline; }
.cookie__actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.cookie__actions .btn { padding: .8rem 1.5rem; }

/* ---------- LIGHTBOX ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 5vw, 4rem);
    background: rgba(20, 17, 13, .96);
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s var(--ease), visibility .4s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
    max-width: 100%;
    max-height: 86vh;
    border-radius: var(--radius-img);
    box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .7);
}
.lightbox__btn {
    position: absolute;
    width: 54px; height: 54px;
    border-radius: 50%;
    border: 1px solid rgba(244, 240, 232, .25);
    background: rgba(244, 240, 232, .06);
    color: var(--paper);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .3s, color .3s, border-color .3s;
}
.lightbox__btn:hover { background: var(--accent); border-color: var(--accent); }
.lightbox__close { top: clamp(1rem, 4vw, 2.4rem); right: clamp(1rem, 4vw, 2.4rem); }
.lightbox__prev { left: clamp(.6rem, 3vw, 2rem); }
.lightbox__next { right: clamp(.6rem, 3vw, 2rem); }

body.no-scroll { overflow: hidden; }

/* ---------- WHATSAPP FAB ---------- */
.fab {
    position: fixed;
    right: clamp(1rem, 3vw, 2rem);
    bottom: clamp(1rem, 3vw, 2rem);
    z-index: 1100;
    width: 58px; height: 58px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: background .35s var(--ease), transform .35s var(--ease);
}
.fab:hover { background: var(--accent); transform: translateY(-3px); }
.fab svg { width: 26px; height: 26px; }
