/* ============================================================
   BRAUN GARTENBAU — GALABAU  (galabau.braun-gartenbau.de)
   main.css — design tokens, base, components, nav, footer
   Aesthetik: warmes, helles "botanisches" Editorial-Layout.
   ============================================================ */

/* ---------- DESIGN TOKENS ---------- */
:root {
    --bg:          #FBF8F1;   /* warmes Papier-Creme */
    --bg-alt:      #F0ECDF;   /* tieferer Sandton (Wechselsektionen) */
    --surface:     #FFFFFF;   /* Karten */

    --green:       #2C5238;   /* Markengrün */
    --green-deep:  #1B3122;   /* dunkelstes Grün — Überschriften */
    --green-bri:   #4C7A45;   /* helleres Grün — Hover/Akzent */
    --clay:        #BC6A44;   /* warmer Erd-Akzent (sparsam) */

    --ink:         #2A2D24;   /* Fließtext */
    --muted:       #6C6F63;   /* gedämpfter Text */

    --line:        rgba(27, 49, 34, .13);
    --line-2:      rgba(27, 49, 34, .26);
    --shadow:      0 20px 44px -26px rgba(34, 48, 30, .55);
    --shadow-sm:   0 10px 26px -18px rgba(34, 48, 30, .5);

    --radius:      22px;
    --radius-sm:   13px;
    --maxw:        1200px;
    --pad:         clamp(1.2rem, 4.5vw, 2.4rem);
    --sec:         clamp(4.5rem, 9vw, 7.5rem);

    --ease:        cubic-bezier(.22, 1, .36, 1);
    --font-d:      "Bricolage Grotesque", "Hanken Grotesk", Georgia, sans-serif;
    --font-b:      "Hanken Grotesk", system-ui, -apple-system, 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(--bg);
    color: var(--ink);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.68;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    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(--green); color: #fff; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }

/* ---------- PAPER GRAIN OVERLAY ---------- */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 9000;
    pointer-events: none;
    opacity: .035;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.86' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- LAYOUT HELPERS ---------- */
.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(3rem, 6vw, 5rem); }
.section--sand { background: var(--bg-alt); }
.section--green { background: var(--green-deep); color: #E9EBE0; }

.skip-link {
    position: absolute;
    left: 1rem; top: -100px;
    z-index: 2000;
    background: var(--green);
    color: #fff;
    padding: .8rem 1.4rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: top .3s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 {
    font-family: var(--font-d);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -.018em;
    color: var(--green-deep);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-family: var(--font-b);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--green);
}
.eyebrow::before {
    content: "";
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--clay);
    box-shadow: 0 0 0 4px rgba(188, 106, 68, .16);
}

.section-head { max-width: 660px; margin-bottom: clamp(2.4rem, 4.5vw, 3.6rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head .eyebrow { margin-bottom: 1.1rem; }
.section-head h2 { font-size: clamp(1.95rem, 4.4vw, 3.05rem); }
.section-head p {
    margin-top: 1rem;
    color: var(--muted);
    font-size: 1.04rem;
    max-width: 54ch;
}
.section-head--center p { margin-inline: auto; }
.section--green .section-head h2 { color: #fff; }
.section--green .section-head p { color: rgba(233, 235, 224, .8); }

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    font-family: var(--font-b);
    font-weight: 600;
    font-size: .96rem;
    line-height: 1;
    padding: 1.02rem 1.9rem;
    border-radius: 100px;
    transition: transform .4s var(--ease), box-shadow .4s var(--ease),
                background .3s, color .3s, border-color .3s;
    will-change: transform;
}
.btn svg { width: 17px; height: 17px; }

.btn--primary {
    background: var(--green);
    color: #fff;
    box-shadow: 0 14px 30px -16px rgba(44, 82, 56, .8);
}
.btn--primary:hover {
    background: var(--green-deep);
    transform: translateY(-3px);
    box-shadow: 0 20px 40px -16px rgba(44, 82, 56, .9);
}

.btn--ghost {
    border: 1.6px solid var(--line-2);
    color: var(--green-deep);
}
.btn--ghost:hover {
    border-color: var(--green);
    color: var(--green);
    transform: translateY(-3px);
}

.btn--light { background: #fff; color: var(--green-deep); }
.btn--light:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -16px rgba(0,0,0,.4); }

.btn--lg { padding: 1.15rem 2.5rem; font-size: 1rem; }
.btn--full { width: 100%; }

/* ---------- REVEAL ANIMATION ---------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s var(--ease), transform 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; }
    body::after { display: none; }
}

/* ---------- NAVBAR ---------- */
.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    transition: background .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
    border-bottom: 1px solid transparent;
}
.nav.scrolled {
    background: rgba(251, 248, 241, .94);
    backdrop-filter: blur(14px) saturate(1.4);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    border-bottom-color: var(--line);
}
.nav__inner {
    max-width: var(--maxw);
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.6rem;
    padding: 1.15rem var(--pad);
    transition: padding .4s var(--ease);
}
.nav.scrolled .nav__inner { padding-block: .8rem; }

.nav__logo {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-family: var(--font-d);
    font-weight: 700;
    font-size: 1.32rem;
    color: var(--green-deep);
    letter-spacing: -.02em;
    white-space: nowrap;
}
.nav__logo .leaf {
    width: 32px; height: 32px;
    flex-shrink: 0;
    color: var(--green);
}
.nav__logo small {
    font-family: var(--font-b);
    font-weight: 500;
    font-size: .6rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted);
    align-self: flex-end;
    padding-bottom: .28rem;
}
/* heller Zustand über dem Hero */
.nav:not(.scrolled) .nav__logo,
.nav:not(.scrolled) .nav__logo .leaf { color: #fff; }
.nav:not(.scrolled) .nav__logo small { color: rgba(255,255,255,.7); }
.nav:not(.scrolled) .nav__links a { color: rgba(255,255,255,.88); }
.nav:not(.scrolled) .nav__burger span { background: #fff; }

.nav__links { display: flex; gap: 2rem; }
.nav__links a {
    font-size: .94rem;
    font-weight: 500;
    color: var(--ink);
    position: relative;
    padding-block: .25rem;
    transition: color .3s;
}
.nav__links a::after {
    content: "";
    position: absolute;
    left: 0; bottom: -2px;
    width: 0; height: 2px;
    border-radius: 2px;
    background: var(--clay);
    transition: width .35s var(--ease);
}
.nav__links a:hover::after { width: 100%; }

.nav__cta { display: flex; align-items: center; gap: .8rem; }
.nav__cta .btn { padding: .82rem 1.45rem; font-size: .9rem; }

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

/* ---------- FOOTER ---------- */
.footer {
    background: var(--green-deep);
    color: rgba(233, 235, 224, .72);
    padding-block: clamp(3.4rem, 7vw, 5rem) 2.2rem;
}
.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2.8rem;
}
.footer__logo {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-family: var(--font-d);
    font-weight: 700;
    font-size: 1.45rem;
    color: #fff;
    margin-bottom: 1.1rem;
}
.footer__logo .leaf { width: 30px; height: 30px; color: var(--green-bri); }
.footer__brand p { max-width: 34ch; font-size: .95rem; }

.footer__col h4 {
    font-family: var(--font-b);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--clay);
    margin-bottom: 1.2rem;
}
.footer__col a, .footer__col p {
    display: block;
    color: rgba(233, 235, 224, .72);
    font-size: .95rem;
    margin-bottom: .65rem;
    transition: color .3s;
}
.footer__col a:hover { color: #fff; }

.footer__bottom {
    margin-top: 3.2rem;
    padding-top: 1.7rem;
    border-top: 1px solid rgba(233, 235, 224, .14);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: .84rem;
    color: rgba(233, 235, 224, .55);
}

/* ---------- COOKIE BANNER ---------- */
.cookie {
    position: fixed;
    left: var(--pad); right: var(--pad); bottom: var(--pad);
    z-index: 1200;
    max-width: 520px;
    margin-inline: auto;
    padding: 1.4rem 1.5rem;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: 0 30px 60px -18px rgba(34, 48, 30, .5);
    transform: translateY(170%);
    transition: transform .6s var(--ease);
}
.cookie.show { transform: none; }
.cookie p { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.cookie p a { color: var(--green); text-decoration: underline; }
.cookie__actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.cookie__actions .btn { padding: .75rem 1.5rem; font-size: .85rem; }

/* ---------- 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, 28, 18, .94);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    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);
    box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .8);
}
.lightbox__btn {
    position: absolute;
    width: 54px; height: 54px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .3s, transform .3s;
}
.lightbox__btn:hover { background: var(--green); transform: scale(1.06); }
.lightbox__close { top: clamp(1rem, 4vw, 2.5rem); right: clamp(1rem, 4vw, 2.5rem); }
.lightbox__prev { left: clamp(.7rem, 3vw, 2rem); }
.lightbox__next { right: clamp(.7rem, 3vw, 2rem); }

/* ---------- WHATSAPP FAB ---------- */
.fab {
    position: fixed;
    right: clamp(1rem, 3vw, 1.9rem);
    bottom: clamp(1rem, 3vw, 1.9rem);
    z-index: 1100;
    width: 58px; height: 58px;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 34px -10px rgba(44, 82, 56, .8);
    transition: transform .4s var(--ease), background .3s;
}
.fab:hover { transform: scale(1.09) translateY(-2px); background: var(--green-deep); }
.fab svg { width: 27px; height: 27px; }

/* ---------- BODY SCROLL LOCK ---------- */
body.no-scroll { overflow: hidden; }

/* ---------- LEGAL PAGES ---------- */
.legal-header {
    border-bottom: 1px solid var(--line);
    padding-block: 1.2rem;
    background: var(--surface);
}
.legal-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.legal-back {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .9rem;
    font-weight: 500;
    color: var(--muted);
    transition: color .3s;
}
.legal-back:hover { color: var(--green); }

.legal { padding-block: clamp(3rem, 8vw, 6rem); }
.legal__wrap { max-width: 760px; margin-inline: auto; }
.legal h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); margin-bottom: 2.4rem; }
.legal section {
    margin-bottom: 1.9rem;
    padding-bottom: 1.9rem;
    border-bottom: 1px solid var(--line);
}
.legal section:last-child { border-bottom: none; }
.legal h2 { font-size: 1.22rem; color: var(--green); margin-bottom: .7rem; }
.legal p, .legal li { color: var(--ink); font-size: .97rem; margin-bottom: .55rem; }
.legal ul { padding-left: 1.2rem; list-style: disc; }
.legal a { color: var(--green); text-decoration: underline; }
.legal strong { color: var(--green-deep); }
