/* ==================================================================
   Hai und Grün UG – Stylesheet
   Modern, responsiv, ohne Framework.
   ================================================================== */

:root {
    --deep:    #06312b;
    --deep-2:  #0a4034;
    --ink:     #0c211c;
    --brand:   #10b981;
    --brand-d: #0e9e6e;
    --brand-l: #34d399;
    --sea:     #0e7c66;
    --bg:      #ffffff;
    --tint:    #f1f8f4;
    --tint-2:  #eaf4ee;
    --muted:   #566a63;
    --line:    #e4efe9;
    --white:   #ffffff;

    --radius:   18px;
    --radius-s: 12px;
    --shadow:   0 10px 30px -12px rgba(6, 49, 43, .18);
    --shadow-lg:0 24px 60px -20px rgba(6, 49, 43, .28);
    --ring:     0 0 0 4px rgba(16, 185, 129, .18);

    --ff-head: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --ff-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --container: 1160px;
}

/* ----------------------------- Reset ------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--ff-body);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand-d); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--ff-head); line-height: 1.12; letter-spacing: -.02em; color: var(--ink); font-weight: 700; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(20px, 5vw, 40px); }

.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 200;
    background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------------------------- Buttons ----------------------------- */
.btn {
    display: inline-flex; align-items: center; gap: .55em;
    font-family: var(--ff-head); font-weight: 600; font-size: 1rem;
    padding: 13px 22px; border-radius: 999px; border: 1.5px solid transparent;
    cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
    white-space: nowrap; text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn svg { flex: none; }
.btn--primary { background: linear-gradient(135deg, var(--brand) 0%, var(--sea) 100%); color: #fff; box-shadow: 0 10px 22px -10px rgba(16,185,129,.7); }
.btn--primary:hover { box-shadow: 0 16px 30px -12px rgba(16,185,129,.85); }
.btn--ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.35); }
.btn--ghost:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.6); }
.btn--lg { padding: 15px 28px; font-size: 1.05rem; }
.btn--sm { padding: 9px 18px; font-size: .95rem; }
.btn--block { width: 100%; justify-content: center; }

/* --------------------------- Navigation --------------------------- */
.nav {
    position: fixed; inset: 0 0 auto 0; z-index: 100;
    transition: background .3s ease, box-shadow .3s ease, color .3s ease;
    color: #fff;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--ff-head); font-weight: 800; font-size: 1.16rem; color: inherit; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand__mark { display: grid; place-items: center; filter: drop-shadow(0 6px 14px rgba(16,185,129,.35)); }
.brand__mark svg { border-radius: 11px; }
.brand__dot { color: var(--brand-l); }

.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { color: inherit; font-family: var(--ff-head); font-weight: 500; font-size: 1.02rem; opacity: .92; }
.nav__links a:hover { opacity: 1; text-decoration: none; color: var(--brand-l); }
.nav__links .nav__cta { color: #fff; opacity: 1; }
.nav__links .nav__cta:hover { color: #fff; }

.nav__toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; }
.nav__toggle span { display: block; height: 2.5px; border-radius: 3px; background: currentColor; margin: 4px 0; transition: transform .25s ease, opacity .25s ease; }

/* Scrolled / solid state */
.nav.is-scrolled, .nav.is-open, .nav--solid {
    background: rgba(255,255,255,.9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    box-shadow: 0 6px 24px -14px rgba(6,49,43,.25); color: var(--ink);
}
.nav.is-scrolled .nav__links a, .nav--solid .nav__links a, .nav.is-open .nav__links a { color: var(--ink); }
.nav.is-scrolled .nav__links a:hover, .nav--solid .nav__links a:hover { color: var(--brand-d); }
.nav.is-scrolled .nav__cta, .nav--solid .nav__cta, .nav.is-open .nav__cta { color: #fff; }

/* ------------------------------ Hero ------------------------------ */
.hero {
    position: relative; overflow: hidden;
    background:
        linear-gradient(95deg, rgba(3,23,20,.96) 0%, rgba(4,26,23,.86) 34%, rgba(5,40,35,.5) 66%, rgba(6,49,43,.2) 100%),
        url('../img/hero.png') center center / cover no-repeat,
        radial-gradient(120% 120% at 80% 0%, var(--deep-2) 0%, var(--deep) 55%, #041f1b 100%);
    color: #eafaf4; padding: 150px 0 130px;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; opacity: .4; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.blob--1 { width: 460px; height: 460px; background: radial-gradient(circle, #10b981, transparent 65%); top: -120px; right: -80px; animation: float1 16s ease-in-out infinite; }
.blob--2 { width: 380px; height: 380px; background: radial-gradient(circle, #0e7c66, transparent 65%); bottom: -140px; left: -60px; animation: float2 20s ease-in-out infinite; }
.blob--3 { width: 300px; height: 300px; background: radial-gradient(circle, #34d399, transparent 60%); top: 40%; left: 45%; opacity: .35; animation: float1 24s ease-in-out infinite reverse; }
@keyframes float1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-30px, 40px); } }
@keyframes float2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(40px, -30px); } }

.hero__inner { position: relative; z-index: 1; max-width: 820px; }
.hero__kicker { display: inline-flex; align-items: center; gap: 9px; font-family: var(--ff-head); font-weight: 600; font-size: .95rem; letter-spacing: .01em; color: #bff3e0; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); padding: 8px 16px; border-radius: 999px; }
.hero__kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-l); box-shadow: 0 0 0 4px rgba(52,211,153,.25); }
.hero__title { font-size: clamp(2.5rem, 6vw, 4.3rem); font-weight: 800; margin: 22px 0 20px; color: #fff; }
.hero__lead { font-size: clamp(1.05rem, 2vw, 1.28rem); color: #cfeee2; max-width: 640px; }
.hero__lead strong { color: #fff; font-weight: 600; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 0; }
.hero__trade { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 12px 26px; }
.hero__trade li { display: inline-flex; align-items: center; gap: 8px; font-family: var(--ff-head); font-weight: 500; font-size: .98rem; color: #d6f5ea; }
.hero__trade li svg { color: var(--brand-l); }

.hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; z-index: 1; }
.hero__wave svg { width: 100%; height: 90px; }
.hero__wave path { fill: var(--bg); }

/* ---------------------------- Sections ---------------------------- */
.section { padding: clamp(64px, 9vw, 108px) 0; }
.section--tint { background: var(--tint); }
.section--dark { background: radial-gradient(120% 120% at 10% 0%, var(--deep-2), var(--deep) 70%); color: #eafaf4; }

.kicker { display: inline-block; font-family: var(--ff-head); font-weight: 700; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-d); margin-bottom: 14px; }
.kicker--light { color: var(--brand-l); }

.section__head { max-width: 680px; margin: 0 auto clamp(40px, 6vw, 60px); text-align: center; }
.section__head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.section__sub { color: var(--muted); margin-top: 14px; font-size: 1.1rem; }
.section--dark .section__sub { color: #bfe6d8; }

/* ---------------------------- Über uns ---------------------------- */
.about { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.about__text h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 20px; }
.about__text p { color: var(--muted); margin-bottom: 16px; }
.about__text strong { color: var(--ink); font-weight: 600; }
.about__facts { background: linear-gradient(160deg, var(--tint) 0%, var(--tint-2) 100%); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); position: sticky; top: 96px; }
.about__facts h3 { font-size: 1.15rem; margin-bottom: 8px; }
.about__facts dl { display: grid; gap: 0; margin-top: 10px; }
.about__facts dl > div { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 13px 0; border-top: 1px solid var(--line); }
.about__facts dl > div:first-child { border-top: 0; }
.about__facts dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--sea); font-family: var(--ff-head); font-weight: 700; }
.about__facts dd { font-weight: 500; color: var(--ink); }

/* ------------------------------ Cards ----------------------------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 24px; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(16,185,129,.4); }
.card__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--tint); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.05); }
.card__icon { position: absolute; left: 18px; bottom: -22px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; background: linear-gradient(135deg, var(--brand) 0%, var(--sea) 100%); color: #fff; box-shadow: 0 10px 20px -8px rgba(16,185,129,.6); border: 3px solid var(--bg); }
.card__body { padding: 34px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 1.28rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .98rem; margin-bottom: 18px; flex: 1; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: .82rem; font-family: var(--ff-head); font-weight: 500; color: var(--sea); background: var(--tint); border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; }

/* ---------------------------- Stärken ----------------------------- */
.strengths { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.strength { display: flex; gap: 18px; align-items: flex-start; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.strength__icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; background: var(--tint); color: var(--brand-d); border: 1px solid var(--line); }
.strength h3 { font-size: 1.14rem; margin-bottom: 5px; }
.strength p { color: var(--muted); font-size: .96rem; }

/* ---------------------------- Kontakt ----------------------------- */
.contact { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(34px, 5vw, 66px); align-items: start; }
.contact__intro h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 16px; }
.contact__lead { color: #bfe6d8; margin-bottom: 30px; font-size: 1.08rem; }
.contact__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.contact__list li { display: flex; align-items: center; gap: 14px; color: #dff3ea; font-size: 1.02rem; }
.contact__list a { color: #dff3ea; }
.contact__list a:hover { color: #fff; }
.ci { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: var(--brand-l); }

.contact__form-wrap { background: var(--bg); border-radius: var(--radius); padding: clamp(24px, 4vw, 38px); box-shadow: var(--shadow-lg); }
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-family: var(--ff-head); font-weight: 600; font-size: .92rem; color: var(--ink); }
.field input, .field textarea {
    font-family: var(--ff-body); font-size: 1rem; color: var(--ink);
    padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-s);
    background: #fbfdfc; transition: border-color .18s ease, box-shadow .18s ease; width: 100%;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); background: #fff; }
.field textarea { resize: vertical; min-height: 120px; }
.field .is-error, textarea.is-error { border-color: #e5484d; background: #fff6f6; }
.err { color: #d33; font-size: .85rem; font-weight: 500; }
.err--block { display: block; margin-top: -8px; }

.consent { display: grid; grid-template-columns: auto 1fr; gap: 11px; align-items: start; font-size: .92rem; color: var(--muted); cursor: pointer; }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.consent.is-error span { color: #d33; }
.consent a { color: var(--brand-d); text-decoration: underline; }

.form__hint { font-size: .82rem; color: var(--muted); margin-top: -4px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { display: flex; align-items: center; gap: 12px; padding: 15px 18px; border-radius: var(--radius-s); margin-bottom: 20px; font-weight: 500; font-size: .98rem; }
.alert svg { flex: none; }
.alert--ok { background: #e8f8f1; color: #0b7a52; border: 1px solid #b7e8d3; }
.alert--err { background: #fdecec; color: #b42318; border: 1px solid #f6cfcf; }

/* ------------------------------ Footer ---------------------------- */
.footer { background: #041f1b; color: #b9d6cc; padding: 64px 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 46px; }
.brand--foot { color: #fff; font-size: 1.1rem; }
.footer__claim { margin-top: 14px; color: #8fb6aa; max-width: 260px; }
.footer__col h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }
.footer__col p { color: #a9cabf; font-size: .96rem; line-height: 1.9; }
.footer__col a { color: #a9cabf; }
.footer__col a:hover { color: var(--brand-l); text-decoration: none; }
.footer__bar { border-top: 1px solid rgba(255,255,255,.09); }
.footer__bar-inner { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding: 20px 0; font-size: .88rem; color: #7fa89b; }

/* ---------------------------- To-Top ------------------------------ */
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 48px; height: 48px; border-radius: 50%; border: 0; background: linear-gradient(135deg, var(--brand), var(--sea)); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .25s ease, transform .25s ease, visibility .25s; }
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { transform: translateY(-3px); }

/* --------------------------- Reveal anim -------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------------------------- Legal page -------------------------- */
.legal { padding: 130px 0 80px; max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 10px; }
.legal .kicker { color: var(--brand-d); }
.legal h2 { font-size: 1.35rem; margin: 34px 0 10px; }
.legal p, .legal address { color: var(--muted); margin-bottom: 12px; font-style: normal; }
.legal strong { color: var(--ink); }
.legal a { color: var(--brand-d); }
.legal .back { display: inline-flex; align-items: center; gap: 8px; margin-top: 40px; font-family: var(--ff-head); font-weight: 600; }

/* --------------------------- Responsive --------------------------- */
@media (max-width: 880px) {
    .nav__toggle { display: block; }
    .nav__links {
        position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
        background: var(--bg); padding: 18px clamp(20px,5vw,40px) 26px; box-shadow: 0 20px 40px -20px rgba(6,49,43,.3);
        transform: translateY(-14px); opacity: 0; visibility: hidden; transition: transform .28s ease, opacity .28s ease, visibility .28s;
        border-top: 1px solid var(--line);
    }
    .nav.is-open .nav__links { transform: none; opacity: 1; visibility: visible; }
    .nav__links a { color: var(--ink); padding: 12px 4px; font-size: 1.1rem; border-bottom: 1px solid var(--line); opacity: 1; }
    .nav__links a:last-child { border-bottom: 0; }
    .nav__links .nav__cta { margin-top: 10px; justify-content: center; border-bottom: 0; }
    .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
    .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
    .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

    .about { grid-template-columns: 1fr; }
    .about__facts { position: static; }
    .contact { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    body { font-size: 16px; }
    .hero { padding: 128px 0 100px; }
    .form__row { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .footer__brand { grid-column: 1 / -1; }
    .btn--lg { width: 100%; justify-content: center; }
    .hero__cta { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; transition: none; }
}
